From 11df77cdffe102f78e356f21c2dcac90080f71fe Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 11 Dec 2014 21:08:19 +0000 Subject: [PATCH] Return wglGetSwapIntervalEXT straight --- renderdoc/hooks/gl_win32_hooks.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/renderdoc/hooks/gl_win32_hooks.cpp b/renderdoc/hooks/gl_win32_hooks.cpp index 75e856bcd..0a9d24a43 100644 --- a/renderdoc/hooks/gl_win32_hooks.cpp +++ b/renderdoc/hooks/gl_win32_hooks.cpp @@ -593,7 +593,8 @@ class OpenGLHook : LibraryHook glhooks.wglGetPixelFormatAttribivARB_realfunc = (PFNWGLGETPIXELFORMATATTRIBIVARBPROC)realFunc; return (PROC)&wglGetPixelFormatAttribivARB_hooked; } - if(!strcmp(func, "wglSwapIntervalEXT")) + if(!strcmp(func, "wglSwapIntervalEXT") || + !strcmp(func, "wglGetSwapIntervalEXT")) { return realFunc; }