Add vsync parameter
This commit is contained in:
parent
0453585751
commit
a1439664ca
@ -282,7 +282,11 @@ static int eng_init() {
|
|||||||
GLAD_GL_ARB_direct_state_access = 0;
|
GLAD_GL_ARB_direct_state_access = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
glfwSwapInterval(0);
|
if(k4_get_arg("vsync")) {
|
||||||
|
glfwSwapInterval(strtol(k4_get_arg("vsync"), NULL, 0));
|
||||||
|
} else {
|
||||||
|
glfwSwapInterval(0);
|
||||||
|
}
|
||||||
|
|
||||||
printf("GL version: %s\n", glGetString(GL_VERSION));
|
printf("GL version: %s\n", glGetString(GL_VERSION));
|
||||||
printf("GL renderer: %s\n", glGetString(GL_RENDERER));
|
printf("GL renderer: %s\n", glGetString(GL_RENDERER));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user