Use requested window format to match rest of the patch in 38257651

Otherwise we end up with an error at runtime:

  QEGLPlatformContext::makeCurrent: eglError: 3009, this: 0x4b5c58

Change-Id: I1e794f427243e40f0a8f572a936b9fb756e89f8a
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
This commit is contained in:
Tor Arne Vestbø 2012-02-21 13:08:42 +01:00 committed by Qt by Nokia
parent 12520e8300
commit 95c759ee0c

View File

@ -1179,7 +1179,7 @@ QXcbEGLSurface *QXcbWindow::eglSurface() const
{
if (!m_eglSurface) {
EGLDisplay display = connection()->egl_display();
EGLConfig config = q_configFromGLFormat(display, window()->format(), true);
EGLConfig config = q_configFromGLFormat(display, window()->requestedFormat(), true);
EGLSurface surface = eglCreateWindowSurface(display, config, (EGLNativeWindowType)m_window, 0);
m_eglSurface = new QXcbEGLSurface(display, surface);