summaryrefslogtreecommitdiffstats
path: root/src/opengl/qglpixelbuffer_egl.cpp
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2010-04-15 12:10:50 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2010-04-16 12:52:12 (GMT)
commit5480e3b68da98253ae6ec58bd0db0075225a4e22 (patch)
treea23c222a11182edb210c9fc41a77431af1087540 /src/opengl/qglpixelbuffer_egl.cpp
parentdda010b51b8e3ec6955b64290ad47c0f43dcda73 (diff)
downloadQt-5480e3b68da98253ae6ec58bd0db0075225a4e22.zip
Qt-5480e3b68da98253ae6ec58bd0db0075225a4e22.tar.gz
Qt-5480e3b68da98253ae6ec58bd0db0075225a4e22.tar.bz2
Cleanup & remove unused function overloads from QEgl* APIs
This should make stubbing out these APIs slightly easier. Reviewed-By: TrustMe
Diffstat (limited to 'src/opengl/qglpixelbuffer_egl.cpp')
-rw-r--r--src/opengl/qglpixelbuffer_egl.cpp4
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 {