Commit 7f2e4d8a authored by Camilla Berglund's avatar Camilla Berglund
Browse files

Win32: Fix possible leak of dummy context

parent 6f313ff2
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment