mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 13:00:32 +00:00
Speculative fix for bizarre crash where wglGetProcAddress_hook is NULL
This commit is contained in:
@@ -346,6 +346,9 @@ class OpenGLHook : LibraryHook
|
||||
|
||||
ret.isSRGB = true;
|
||||
|
||||
if(glhooks.wglGetProcAddress_hook() == NULL)
|
||||
glhooks.wglGetProcAddress_hook.SetFuncPtr(Process::GetFunctionAddress(DLL_NAME, "wglGetProcAddress"));
|
||||
|
||||
if(glhooks.wglGetPixelFormatAttribivARB_realfunc == NULL)
|
||||
glhooks.wglGetProcAddress_hook()("wglGetPixelFormatAttribivARB");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user