XCB: Record the OpenGL profile in the format

Change-Id: I68f9e78e15fc798ec801feed74e0cb900ef577ae
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
This commit is contained in:
Sean Harmer 2012-07-21 08:38:25 +01:00 committed by Qt by Nokia
parent 3e760da85a
commit b182940340

View File

@ -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);