diff -r 5dc02b23752f -r 3e2da88830cd src/gui/egl/qegl_x11.cpp --- a/src/gui/egl/qegl_x11.cpp Tue Jul 06 15:10:48 2010 +0300 +++ b/src/gui/egl/qegl_x11.cpp Wed Aug 18 10:37:55 2010 +0300 @@ -415,7 +415,10 @@ // At this point, the widget's window should be created and have the correct visual. Now we // just need to create the EGL surface for it: - return eglCreateWindowSurface(QEgl::display(), config, (EGLNativeWindowType)widget->winId(), 0); + EGLSurface surf = eglCreateWindowSurface(QEgl::display(), config, (EGLNativeWindowType)widget->winId(), 0); + if (surf == EGL_NO_SURFACE) + qWarning("QEglContext::createSurface(): Unable to create EGL surface, error = 0x%x", eglGetError()); + return surf; } if (x11PixmapData) {