Fixed Linux build.

This commit is contained in:
bkaradzic
2013-03-09 15:56:26 -08:00
parent ed0055caad
commit 8d5b34ffa6

View File

@@ -112,6 +112,7 @@ namespace bgfx
XFree(visualInfo);
#if BGFX_CONFIG_RENDERER_OPENGL >= 31
typedef GLXContext (*glXCreateContextAttribsARBProc)(Display*, GLXFBConfig, GLXContext, Bool, const int*);
glXCreateContextAttribsARBProc glXCreateContextAttribsARB = (glXCreateContextAttribsARBProc)glXGetProcAddress((const GLubyte*)"glXCreateContextAttribsARB");
if (NULL != glXCreateContextAttribsARB)
@@ -133,6 +134,9 @@ namespace bgfx
m_context = context;
}
}
#else
BX_UNUSED(bestConfig);
#endif // BGFX_CONFIG_RENDERER_OPENGL >= 31
XUnlockDisplay(s_display);