mirror of
https://github.com/glfw/glfw.git
synced 2026-08-28 19:05:54 +02:00
Win32: Fix possible leak of dummy context
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user