diff options
author | Joerg Bornemann <joerg.bornemann@theqtcompany.com> | 2015-04-09 15:56:51 (GMT) |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@theqtcompany.com> | 2015-04-10 09:43:46 (GMT) |
commit | 9895339de8da4234805c795477b729316210a295 (patch) | |
tree | a6687114fef19e956268195e535c017e543d7f6a | |
parent | 90a09c7aedb3036aa1f572a959c67b1f8fcd9e9c (diff) | |
download | Qt-9895339de8da4234805c795477b729316210a295.zip Qt-9895339de8da4234805c795477b729316210a295.tar.gz Qt-9895339de8da4234805c795477b729316210a295.tar.bz2 |
don't return false when a null pointer is expected
Task-number: QTBUG-44748
Change-Id: I29616fdba5f0fefad3366563e12986cafa6266d6
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
-rw-r--r-- | src/opengl/qgl_x11egl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qgl_x11egl.cpp b/src/opengl/qgl_x11egl.cpp index 6bff37f..3a07e49 100644 --- a/src/opengl/qgl_x11egl.cpp +++ b/src/opengl/qgl_x11egl.cpp @@ -497,7 +497,7 @@ QGLTexture *QGLContextPrivate::bindTextureFromNativePixmap(QPixmap *pixmap, cons pixmapData->gl_surface = (void*)QEgl::createSurface(pixmap, config); if (pixmapData->gl_surface == (void*)EGL_NO_SURFACE) - return false; + return 0; } EGLBoolean success; |