Win32: Fix possible leak of dummy context

master
Camilla Berglund ago%!(EXTRA string=9 years)
parent 6f313ff245
commit 7f2e4d8ace
  1. 2
      src/wgl_context.c

@ -383,6 +383,8 @@ static void loadWGLExtensions(void)
if (!wglMakeCurrent(dc, rc))
{
wglDeleteContext(rc);
_glfwInputError(GLFW_PLATFORM_ERROR,
"WGL: Failed to make context current for WGL extension loading");
return;

Loading…
Cancel
Save