GLX: Use glXCreateContextAttribsARB to create versioned context. It makes RenderDoc work without specifying GL version.
This commit is contained in:
parent
0ccb1a9fed
commit
701fc43149
@ -164,7 +164,6 @@ namespace bgfx { namespace gl
|
||||
m_context = glXCreateContext(m_display, m_visualInfo, 0, GL_TRUE);
|
||||
BGFX_FATAL(NULL != m_context, Fatal::UnableToInitialize, "Failed to create GL 2.1 context.");
|
||||
|
||||
#if BGFX_CONFIG_RENDERER_OPENGL >= 31
|
||||
glXCreateContextAttribsARB = (PFNGLXCREATECONTEXTATTRIBSARBPROC)glXGetProcAddress( (const GLubyte*)"glXCreateContextAttribsARB");
|
||||
|
||||
if (NULL != glXCreateContextAttribsARB)
|
||||
@ -188,9 +187,6 @@ namespace bgfx { namespace gl
|
||||
m_context = context;
|
||||
}
|
||||
}
|
||||
#else
|
||||
BX_UNUSED(bestConfig);
|
||||
#endif // BGFX_CONFIG_RENDERER_OPENGL >= 31
|
||||
|
||||
XUnlockDisplay(m_display);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user