From 77633d8d9a4470be45f23697e23bad773e270931 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Fri, 6 Apr 2012 14:37:40 +0200 Subject: [PATCH] Added some missing error reporting. --- src/x11_window.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/x11_window.c b/src/x11_window.c index a5058f00..980fa305 100644 --- a/src/x11_window.c +++ b/src/x11_window.c @@ -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; }