diff --git a/src/wgl_context.c b/src/wgl_context.c index ad1ffa55..b3e0303c 100644 --- a/src/wgl_context.c +++ b/src/wgl_context.c @@ -215,7 +215,11 @@ static int choosePixelFormat(_GLFWwindow* window, 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) ||