mirror of
https://github.com/lubosz/overte.git
synced 2025-05-28 03:51:29 +02:00
Compare gl to GL_NO_ERROR, not GLEW_OK
This commit is contained in:
parent
471ac80135
commit
e28a876629
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue