diff --git a/renderdoc/driver/gl/gl_hooks_win32.cpp b/renderdoc/driver/gl/gl_hooks_win32.cpp index b78eb1a96..d16ec98ab 100644 --- a/renderdoc/driver/gl/gl_hooks_win32.cpp +++ b/renderdoc/driver/gl/gl_hooks_win32.cpp @@ -512,6 +512,8 @@ class OpenGLHook : LibraryHook core = (a[1] & WGL_CONTEXT_CORE_PROFILE_BIT_ARB); } + SetLastError(0); + HGLRC ret = glhooks.wglCreateContextAttribsARB_realfunc(dc, hShareContext, attribs); DWORD err = GetLastError();