mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 13:00:32 +00:00
Don't try and hook OpenGL functions if the dll isn't even loaded on win32
This commit is contained in:
@@ -189,6 +189,12 @@ class OpenGLHook : LibraryHook
|
||||
|
||||
if(!m_EnabledHooks)
|
||||
return false;
|
||||
|
||||
if(GetModuleHandleA(DLL_NAME) == NULL)
|
||||
{
|
||||
RDCWARN("Failed to load %s - not inserting OpenGL hooks.", DLL_NAME);
|
||||
return false;
|
||||
}
|
||||
|
||||
bool success = SetupHooks(GL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user