Skip to content

Commit 9895339

Browse files
committed
don't return false when a null pointer is expected
Task-number: QTBUG-44748 Change-Id: I29616fdba5f0fefad3366563e12986cafa6266d6 Reviewed-by: Gunnar Sletta <[email protected]>
1 parent 90a09c7 commit 9895339

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/opengl/qgl_x11egl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ QGLTexture *QGLContextPrivate::bindTextureFromNativePixmap(QPixmap *pixmap, cons
497497

498498
pixmapData->gl_surface = (void*)QEgl::createSurface(pixmap, config);
499499
if (pixmapData->gl_surface == (void*)EGL_NO_SURFACE)
500-
return false;
500+
return 0;
501501
}
502502

503503
EGLBoolean success;

0 commit comments

Comments
 (0)