Compare gl to GL_NO_ERROR, not GLEW_OK

This commit is contained in:
Zach Pomerantz 2016-03-22 13:25:43 -07:00
parent 471ac80135
commit e28a876629

View file

@ -192,7 +192,7 @@ void OffscreenQmlRenderThread::setupFbo() {
// FIXME: Something upstream is polluting the context with a GL_INVALID_ENUM, // FIXME: Something upstream is polluting the context with a GL_INVALID_ENUM,
// likely from glewExperimental = true // likely from glewExperimental = true
GLenum err = glGetError(); GLenum err = glGetError();
if (err != GLEW_OK) { if (err != GL_NO_ERROR) {
qDebug() << "Clearing outstanding GL error to set up QML FBO:" << glewGetErrorString(err); qDebug() << "Clearing outstanding GL error to set up QML FBO:" << glewGetErrorString(err);
} }