mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
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:
@@ -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); });
|
||||
|
||||
Reference in New Issue
Block a user