Need to completely disable GL hook if dll isn't loaded as layer

This commit is contained in:
baldurk
2016-02-07 18:42:34 +01:00
parent 27aec9b277
commit 31e47925b3
+2 -3
View File
@@ -206,9 +206,8 @@ class OpenGLHook : LibraryHook
public:
OpenGLHook()
{
// temp hack
if(GetModuleHandleA("vulkan.0.dll") == NULL)
LibraryHooks::GetInstance().RegisterHook(DLL_NAME, this);
// VKTODOHIGH temporary hack while GL hooks are crashing vulkan
//LibraryHooks::GetInstance().RegisterHook(DLL_NAME, this);
m_GLDriver = NULL;