From 5983615f0ea694892e9bbe70cd7cc842e975cea3 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sat, 5 Mar 2011 13:24:16 +0100 Subject: [PATCH] Moved all callback setting to before window opening, because I can. --- tests/fsaa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fsaa.c b/tests/fsaa.c index 8a9d1f10..404e77f4 100644 --- a/tests/fsaa.c +++ b/tests/fsaa.c @@ -93,6 +93,7 @@ int main(int argc, char** argv) printf("Requesting that FSAA not be available\n"); glfwSetKeyCallback(key_callback); + glfwSetWindowSizeCallback(window_size_callback); glfwOpenWindowHint(GLFW_FSAA_SAMPLES, samples); @@ -113,7 +114,6 @@ int main(int argc, char** argv) exit(EXIT_FAILURE); } - glfwSetWindowSizeCallback(window_size_callback); glfwSwapInterval(1); samples = glfwGetWindowParam(window, GLFW_FSAA_SAMPLES);