Speculative fix for bizarre crash where wglGetProcAddress_hook is NULL

This commit is contained in:
baldurk
2015-08-24 20:41:10 +02:00
parent 6a488a1ae7
commit 85a343c24b
+3
View File
@@ -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");