diff options
author | Martin Smith <msmith@trolltech.com> | 2010-04-20 10:35:18 (GMT) |
---|---|---|
committer | Martin Smith <msmith@trolltech.com> | 2010-04-20 10:35:18 (GMT) |
commit | dbdc9cb65c758d87738fbaadfa7b1c39e33e96a0 (patch) | |
tree | 58b7bbd7aba7fc9f3feafdf84084ced8d90cadfb /src/opengl/qglpixelbuffer_egl.cpp | |
parent | 0a6faf00f06c8a0e2e0f4714bb14645172ee8922 (diff) | |
parent | 7bec0ef0cd9ffb633586c820004607d2e3d66b07 (diff) | |
download | Qt-dbdc9cb65c758d87738fbaadfa7b1c39e33e96a0.zip Qt-dbdc9cb65c758d87738fbaadfa7b1c39e33e96a0.tar.gz Qt-dbdc9cb65c758d87738fbaadfa7b1c39e33e96a0.tar.bz2 |
Merge branch '4.7' of git@scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7
Diffstat (limited to 'src/opengl/qglpixelbuffer_egl.cpp')
-rw-r--r-- | src/opengl/qglpixelbuffer_egl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opengl/qglpixelbuffer_egl.cpp b/src/opengl/qglpixelbuffer_egl.cpp index db9e754..0b94f5a 100644 --- a/src/opengl/qglpixelbuffer_egl.cpp +++ b/src/opengl/qglpixelbuffer_egl.cpp @@ -75,9 +75,9 @@ bool QGLPixelBufferPrivate::init(const QSize &size, const QGLFormat &f, QGLWidge ctx->setConfig(shareContext->config()); #if QGL_RENDER_TEXTURE EGLint value = EGL_FALSE; - if (ctx->configAttrib(EGL_BIND_TO_TEXTURE_RGBA, &value) && value) + if (ctx->configAttrib(EGL_BIND_TO_TEXTURE_RGBA) == EGL_TRUE) textureFormat = EGL_TEXTURE_RGBA; - else if (ctx->configAttrib(EGL_BIND_TO_TEXTURE_RGB, &value) && value) + else if (ctx->configAttrib(EGL_BIND_TO_TEXTURE_RGB) == EGL_TRUE) textureFormat = EGL_TEXTURE_RGB; #endif } else { |