Browse Source

Fixed order of operations in iconify test.

Camilla Berglund 13 years ago
parent
commit
73ca3bdbb6
1 changed files with 6 additions and 6 deletions
  1. 6 6
      tests/iconify.c

+ 6 - 6
tests/iconify.c

@@ -95,6 +95,12 @@ int main(int argc, char** argv)
     GLFWmonitor monitor = NULL;
     GLFWwindow window;
 
+    if (!glfwInit())
+    {
+        fprintf(stderr, "Failed to initialize GLFW: %s\n", glfwErrorString(glfwGetError()));
+        exit(EXIT_FAILURE);
+    }
+
     while ((ch = getopt(argc, argv, "fh")) != -1)
     {
         switch (ch)
@@ -113,12 +119,6 @@ int main(int argc, char** argv)
         }
     }
 
-    if (!glfwInit())
-    {
-        fprintf(stderr, "Failed to initialize GLFW: %s\n", glfwErrorString(glfwGetError()));
-        exit(EXIT_FAILURE);
-    }
-
     if (monitor)
     {
         GLFWvidmode mode;