Moved all callback setting to before window opening, because I can.
This commit is contained in:
parent
fa58cc393d
commit
5983615f0e
@ -93,6 +93,7 @@ int main(int argc, char** argv)
|
|||||||
printf("Requesting that FSAA not be available\n");
|
printf("Requesting that FSAA not be available\n");
|
||||||
|
|
||||||
glfwSetKeyCallback(key_callback);
|
glfwSetKeyCallback(key_callback);
|
||||||
|
glfwSetWindowSizeCallback(window_size_callback);
|
||||||
|
|
||||||
glfwOpenWindowHint(GLFW_FSAA_SAMPLES, samples);
|
glfwOpenWindowHint(GLFW_FSAA_SAMPLES, samples);
|
||||||
|
|
||||||
@ -113,7 +114,6 @@ int main(int argc, char** argv)
|
|||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
glfwSetWindowSizeCallback(window_size_callback);
|
|
||||||
glfwSwapInterval(1);
|
glfwSwapInterval(1);
|
||||||
|
|
||||||
samples = glfwGetWindowParam(window, GLFW_FSAA_SAMPLES);
|
samples = glfwGetWindowParam(window, GLFW_FSAA_SAMPLES);
|
||||||
|
Loading…
Reference in New Issue
Block a user