mirror of
https://github.com/glfw/glfw.git
synced 2025-04-08 06:43:14 +00:00
Added some missing error reporting.
This commit is contained in:
parent
c1dd245d8a
commit
77633d8d9a
1 changed files with 7 additions and 0 deletions
|
@ -1292,11 +1292,18 @@ int _glfwPlatformOpenWindow(_GLFWwindow* window,
|
|||
|
||||
fbconfigs = getFBConfigs(window, &fbcount);
|
||||
if (!fbconfigs)
|
||||
{
|
||||
_glfwSetError(GLFW_PLATFORM_ERROR,
|
||||
"X11/GLX: No usable GLXFBConfigs found");
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
||||
result = _glfwChooseFBConfig(fbconfig, fbconfigs, fbcount);
|
||||
if (!result)
|
||||
{
|
||||
_glfwSetError(GLFW_PLATFORM_ERROR,
|
||||
"X11/GLX: No GLXFBConfig matched the criteria");
|
||||
|
||||
free(fbconfigs);
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue