mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 14:04:36 +00:00
Win32: Fix possible leak of dummy context
This commit is contained in:
parent
6f313ff245
commit
7f2e4d8ace
@ -383,6 +383,8 @@ static void loadWGLExtensions(void)
|
|||||||
|
|
||||||
if (!wglMakeCurrent(dc, rc))
|
if (!wglMakeCurrent(dc, rc))
|
||||||
{
|
{
|
||||||
|
wglDeleteContext(rc);
|
||||||
|
|
||||||
_glfwInputError(GLFW_PLATFORM_ERROR,
|
_glfwInputError(GLFW_PLATFORM_ERROR,
|
||||||
"WGL: Failed to make context current for WGL extension loading");
|
"WGL: Failed to make context current for WGL extension loading");
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user