diff --git a/renderdoc/driver/gl/gl_hooks_win32.cpp b/renderdoc/driver/gl/gl_hooks_win32.cpp index 7bd995da5..6383d5366 100644 --- a/renderdoc/driver/gl/gl_hooks_win32.cpp +++ b/renderdoc/driver/gl/gl_hooks_win32.cpp @@ -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");