Saturday, 14 September 2013

Eclipse (CDT) can't resolve variables?

Eclipse (CDT) can't resolve variables?

I'm currently trying to program some OpenGL stuff, but Eclipse is acting
strangely.
For some reason, this works:
glClear(GL_COLOR_BUFFER_BIT)
and this too:
glClear(GL_DEPTH_BUFFER_BIT)
but eclipse says it can't resolve the individual enums here:
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)
Any ideas as to why this is happening? The program compiles and runs just
fine despite the error indicated by eclipse. Is there some configuration I
can change?

No comments:

Post a Comment