WGL: Unify query error handling

This commit is contained in:
Camilla Löwy 2019-02-14 21:48:08 +01:00
parent 782f7fe0c7
commit ec3784f3d7

View File

@ -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) ||