commit | ec3784f3d78a4b9fc2f1a676bcf1275077e3b0d9 | [log] [tgz] |
---|---|---|
author | Camilla Löwy <elmindreda@elmindreda.org> | Thu Feb 14 21:48:08 2019 +0100 |
committer | Camilla Löwy <elmindreda@elmindreda.org> | Sun Feb 17 18:34:56 2019 +0100 |
tree | 330e7b6f3844e8d0766c050bb21dd3788f34eebe | |
parent | 782f7fe0c7ee746d4746dff7a4f7ead1af220a05 [diff] |
WGL: Unify query error handling
diff --git a/src/wgl_context.c b/src/wgl_context.c index ad1ffa5..b3e0303 100644 --- a/src/wgl_context.c +++ b/src/wgl_context.c
@@ -215,7 +215,11 @@ sizeof(PIXELFORMATDESCRIPTOR), &pfd)) { - continue; + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "WGL: Failed to describe pixel format"); + + free(usableConfigs); + return 0; } if (!(pfd.dwFlags & PFD_DRAW_TO_WINDOW) ||