mirror of
https://github.com/glfw/glfw.git
synced 2026-11-18 12:54:54 +00:00
Added GLFW error strings to test programs, various tweaks.
This commit is contained in:
+2
-2
@@ -45,7 +45,7 @@ static GLFWwindow open_window(int width, int height, const char* title)
|
||||
GLFWwindow window = glfwOpenWindow(width, height, GLFW_WINDOWED);
|
||||
if (!window)
|
||||
{
|
||||
fprintf(stderr, "Failed to open GLFW default window\n");
|
||||
fprintf(stderr, "Failed to initialize GLFW: %s\n", glfwErrorString(glfwGetError()));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ int main(void)
|
||||
|
||||
if (!glfwInit())
|
||||
{
|
||||
fprintf(stderr, "Failed to initialize GLFW\n");
|
||||
fprintf(stderr, "Failed to open GLFW window: %s\n", glfwErrorString(glfwGetError()));
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user