mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-22 21:55:52 +00:00
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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user