mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 16:44:11 +00:00
Fix error type for unavailable pixel format error
All backends reported this as GLFW_PLATFORM_ERROR, while the documentation mandates GLFW_FORMAT_UNAVAILABLE.
This commit is contained in:
+1
-1
@@ -250,7 +250,7 @@ static GLboolean choosePixelFormat(_GLFWwindow* window,
|
||||
closest = _glfwChooseFBConfig(desired, usableConfigs, usableCount);
|
||||
if (!closest)
|
||||
{
|
||||
_glfwInputError(GLFW_PLATFORM_ERROR,
|
||||
_glfwInputError(GLFW_FORMAT_UNAVAILABLE,
|
||||
"WGL: Failed to find a suitable pixel format");
|
||||
|
||||
free(usableConfigs);
|
||||
|
||||
Reference in New Issue
Block a user