From b1829403408aebdf62b61dcefdb96b0457b9bd3e Mon Sep 17 00:00:00 2001 From: Sean Harmer Date: Sat, 21 Jul 2012 08:38:25 +0100 Subject: [PATCH] XCB: Record the OpenGL profile in the format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I68f9e78e15fc798ec801feed74e0cb900ef577ae Reviewed-by: Samuel Rødal --- src/plugins/platforms/xcb/qglxintegration.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/platforms/xcb/qglxintegration.cpp b/src/plugins/platforms/xcb/qglxintegration.cpp index 537d4a0d73..413c690897 100644 --- a/src/plugins/platforms/xcb/qglxintegration.cpp +++ b/src/plugins/platforms/xcb/qglxintegration.cpp @@ -136,6 +136,7 @@ QGLXContext::QGLXContext(QXcbScreen *screen, const QSurfaceFormat &format, QPlat m_format = qglx_surfaceFormatFromGLXFBConfig(DISPLAY_FROM_XCB(screen), config, m_context); m_format.setMajorVersion(format.majorVersion()); m_format.setMinorVersion(format.minorVersion()); + m_format.setProfile(format.profile()); } } else { XVisualInfo *visualInfo = qglx_findVisualInfo(DISPLAY_FROM_XCB(m_screen), screen->screenNumber(), &m_format);