OpenGL: glGetError() returns invalid enum after call to glewInit()

前端 未结 2 1123
甜味超标
甜味超标 2020-12-03 17:09

I use GLEW and freeglut. For some reason, after a call to glewInit(), glGetError() returns error code 1280, even with glewExperimental = GL_FALSE.

I cannot compile

2条回答
  •  攒了一身酷
    2020-12-03 17:27

    Did you see the comment on this wiki page?

    http://www.opengl.org/wiki/OpenGL_Loading_Library

    It mentions why this occurs, and it says "in some cases you may still get GL_INVALID_ENUM after specifying glewExperimental depending on your glew version".

    It sounds like it might be safe to ignore as long as you're not seeing any other problems.

提交回复
热议问题