From 701fc43149b97e92e5c8d074bd07b3d250640ef5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Wed, 6 Mar 2019 09:49:28 -0800 Subject: [PATCH] GLX: Use glXCreateContextAttribsARB to create versioned context. It makes RenderDoc work without specifying GL version. --- src/glcontext_glx.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/glcontext_glx.cpp b/src/glcontext_glx.cpp index 5a929d9cf..df7c18536 100644 --- a/src/glcontext_glx.cpp +++ b/src/glcontext_glx.cpp @@ -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); }