mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Don't bypass wglDX functions used for interop
This commit is contained in:
@@ -508,8 +508,9 @@ static PROC WINAPI wglGetProcAddress_hooked(const char *func)
|
||||
if(!strcmp(func, "wglGetProcAddress"))
|
||||
return (PROC)&wglGetProcAddress_hooked;
|
||||
|
||||
// assume wgl functions are safe to just pass straight through
|
||||
if(!strncmp(func, "wgl", 3))
|
||||
// assume wgl functions are safe to just pass straight through, but don't pass through the wgl DX
|
||||
// interop functions
|
||||
if(!strncmp(func, "wgl", 3) && strncmp(func, "wglDX", 5))
|
||||
return realFunc;
|
||||
|
||||
// otherwise, consult our database of hooks
|
||||
|
||||
Reference in New Issue
Block a user