diff options
author | Tor Arne Vestbø <tor.arne.vestbo@nokia.com> | 2012-02-21 13:08:42 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-21 14:01:29 +0100 |
commit | 95c759ee0cc1d4fa2ed3f3b82e0e0e80f56df3a4 (patch) | |
tree | 97ff5cc5470b58c4ac6db636e3a066fcb92d35e0 /src | |
parent | 12520e83009fb8bd694d9768801875558bcc6321 (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/xcb/qxcbwindow.cpp b/src/plugins/platforms/xcb/qxcbwindow.cpp index be3d527cfc..43e4a6b7d9 100644 --- a/src/plugins/platforms/xcb/qxcbwindow.cpp +++ b/src/plugins/platforms/xcb/qxcbwindow.cpp @@ -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); |