Win32: Fix possible leak of dummy context

This commit is contained in:
Camilla Berglund 2016-06-22 23:42:56 +02:00
parent 6f313ff245
commit 7f2e4d8ace

View File

@ -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;