From 95c759ee0cc1d4fa2ed3f3b82e0e0e80f56df3a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Tue, 21 Feb 2012 13:08:42 +0100 Subject: Use requested window format to match rest of the patch in 38257651 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise we end up with an error at runtime: QEGLPlatformContext::makeCurrent: eglError: 3009, this: 0x4b5c58 Change-Id: I1e794f427243e40f0a8f572a936b9fb756e89f8a Reviewed-by: Samuel Rødal --- src/plugins/platforms/xcb/qxcbwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3