mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 05:20:45 +00:00
Handle glXCreateContextAttribsARB not being an exported module symbol
* This is true for e.g. mesa drivers
This commit is contained in:
@@ -791,6 +791,10 @@ __GLXextFuncPtr glXGetProcAddress(const GLubyte *f)
|
||||
return (__GLXextFuncPtr)dlsym(libGLdlsymHandle, (const char *)f);
|
||||
}
|
||||
|
||||
// this might not be dlsym exported, so if it's GPA'd, record the real pointer for oureslves
|
||||
if(!strcmp(func, "glXCreateContextAttribsARB") && OpenGLHook::glhooks.glXCreateContextAttribsARB_real == NULL)
|
||||
OpenGLHook::glhooks.glXCreateContextAttribsARB_real = (PFNGLXCREATECONTEXTATTRIBSARBPROC)realFunc;
|
||||
|
||||
// handle a few functions that we only export as real functions, just
|
||||
// in case
|
||||
if(!strcmp(func, "glXCreateContext")) return (__GLXextFuncPtr)&glXCreateContext;
|
||||
|
||||
Reference in New Issue
Block a user