How do I fix this? I've got both gl/gl.h, and gl/glu.h included, so what gives?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
"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?