From 67e5b28f3b11c196c47ffb7612657e3e9490377b Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 11 Nov 2014 17:49:54 +0000 Subject: [PATCH] Debug log for which extension functions the app is requesting --- renderdoc/hooks/gl_win32_hooks.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/renderdoc/hooks/gl_win32_hooks.cpp b/renderdoc/hooks/gl_win32_hooks.cpp index e344870d5..ee811a15a 100644 --- a/renderdoc/hooks/gl_win32_hooks.cpp +++ b/renderdoc/hooks/gl_win32_hooks.cpp @@ -449,6 +449,10 @@ class OpenGLHook : LibraryHook static PROC WINAPI wglGetProcAddress_hooked(const char *func) { PROC realFunc = glhooks.wglGetProcAddress_realfunc(func); + +#if 0 + RDCDEBUG("Checking for extension - %hs - real function is %p", func, realFunc); +#endif // if the real RC doesn't support this function, don't bother hooking if(realFunc == NULL)