'GL_CLAMP_TO_EDGE' was not declared in this scope
How do I fix this? I've got both gl/gl.h, and gl/glu.h included, so w开发者_如何学Gohat gives?
"It''s part of OpenGL 1.2, which is why it isn''t in Microsoft''s OpenGL 1.1 header.
Add this line to your code somewhere. BTW, you should probably check the GL version at runtime before using it.
#define GL_CLAMP_TO_EDGE 0x812F
"
I just googled it and found this. Does it help?
精彩评论