mirror of
https://github.com/glfw/glfw.git
synced 2025-04-07 22:43:06 +00:00
Win32: Fix possible leak of dummy context
This commit is contained in:
parent
6f313ff245
commit
7f2e4d8ace
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue