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:
parent
3e760da85a
commit
b182940340
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user