From 86e50b104434d8e0ccebe4f38a124eca7d18d7d1 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 3 Nov 2013 13:29:21 +0100 Subject: [PATCH] Placed glfwinfo version test after getopt. --- tests/glfwinfo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/glfwinfo.c b/tests/glfwinfo.c index 87e4c9c5..c99a65a7 100644 --- a/tests/glfwinfo.c +++ b/tests/glfwinfo.c @@ -186,9 +186,6 @@ int main(int argc, char** argv) GLint flags, mask; GLFWwindow* window; - if (!valid_version()) - exit(EXIT_FAILURE); - while ((ch = getopt(argc, argv, "a:dfhlm:n:p:r:")) != -1) { switch (ch) @@ -254,6 +251,9 @@ int main(int argc, char** argv) // Initialize GLFW and create window + if (!valid_version()) + exit(EXIT_FAILURE); + glfwSetErrorCallback(error_callback); if (!glfwInit())