X-Git-Url: https://git.lukelau.me/?p=opengl.git;a=blobdiff_plain;f=main.cpp;h=4cc4280be0180f5f44d86e7c426a99c8a7d2d771;hp=99312d384ed00ea36ff83640f32d5621201704fd;hb=f26de7de42a3d0a52365de79f528fcea808e2bca;hpb=150ba29f1ce70777762cb7fc44e00e52339bb66e diff --git a/main.cpp b/main.cpp index 99312d3..4cc4280 100644 --- a/main.cpp +++ b/main.cpp @@ -242,7 +242,7 @@ void timer(int _) { camPos.y += ySpeed; camPos.z += zSpeed * sin(yaw) - xSpeed * cos(yaw); glutPostRedisplay(); - glutTimerFunc(16, idle, 0); + glutTimerFunc(16, timer, 0); } int prevMouseX, prevMouseY;