Fix fetching glXCreateContextAttribsARB on mesa which was broken

* The function isn't exported via dlsym, so it needs to be fetched via
  glXGetProcAddress. Calling our own internal wrapper will fetch the
  real pointer and populate it.
This commit is contained in:
baldurk
2017-02-22 15:47:10 +00:00
parent fd0a9bee70
commit 9ffc18a5c0
+1 -1
View File
@@ -767,7 +767,7 @@ bool OpenGLHook::PopulateHooks()
{
SetupHooks();
glXGetProcAddress_real((const GLubyte *)"glXCreateContextAttribsARB");
glXGetProcAddress((const GLubyte *)"glXCreateContextAttribsARB");
return SharedPopulateHooks(
[](const char *funcName) { return (void *)glXGetProcAddress((const GLubyte *)funcName); });