Register hooks for unsupported functions

* This is necessary on e.g. Windows where some legacy functions are only
  exported via the dll and need to be 'properly' hooked and not just intercepted
  via GL's GetProcAddr
This commit is contained in:
baldurk
2022-03-30 11:49:35 +01:00
parent 1c265bd1df
commit 4dcdd6dbd6
+5
View File
@@ -290,7 +290,12 @@ void GLHook::RegisterHooks()
libraryName, \
FunctionHook(STRINGIZE(name), (void **)&GL.func, (void *)&CONCAT(func, _renderdoc_hooked)));
#define RegisterUnsupportedFunc(name) \
LibraryHooks::RegisterFunctionHook( \
libraryName, FunctionHook(STRINGIZE(name), NULL, (void *)&CONCAT(name, _renderdoc_hooked)));
ForEachSupported(RegisterFunc);
ForEachUnsupported(RegisterUnsupportedFunc);
#if ENABLED(RDOC_WIN32)
if(ShouldHookEGL())