equal
deleted
inserted
replaced
413 widget->show(); |
413 widget->show(); |
414 } |
414 } |
415 |
415 |
416 // At this point, the widget's window should be created and have the correct visual. Now we |
416 // At this point, the widget's window should be created and have the correct visual. Now we |
417 // just need to create the EGL surface for it: |
417 // just need to create the EGL surface for it: |
418 return eglCreateWindowSurface(QEgl::display(), config, (EGLNativeWindowType)widget->winId(), 0); |
418 EGLSurface surf = eglCreateWindowSurface(QEgl::display(), config, (EGLNativeWindowType)widget->winId(), 0); |
|
419 if (surf == EGL_NO_SURFACE) |
|
420 qWarning("QEglContext::createSurface(): Unable to create EGL surface, error = 0x%x", eglGetError()); |
|
421 return surf; |
419 } |
422 } |
420 |
423 |
421 if (x11PixmapData) { |
424 if (x11PixmapData) { |
422 // X11 Pixmaps are only created with a depth, so that's all we need to check |
425 // X11 Pixmaps are only created with a depth, so that's all we need to check |
423 EGLint configDepth; |
426 EGLint configDepth; |