WGL: Unify query error handling

master
Camilla Löwy ago%!(EXTRA string=6 years)
parent 782f7fe0c7
commit ec3784f3d7
  1. 6
      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) ||

Loading…
Cancel
Save