medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit a8826f8c8ffc69c2f99fc6ae14f991559bfcbf57
parent 81dbe64d5d547dda46ea420ad8ec55511a2b3394
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Thu Aug 13 20:58:19 +0200

Initialise last_frame_time after game.init

Diffstat:
main.cc | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/main.cc b/main.cc @@ -71,10 +71,10 @@ int main( int argc, char ** argv ) { GLFWwindow * const window = GL::init(); - float last_frame_time = glfwGetTime(); - game.init( state ); + float last_frame_time = glfwGetTime(); + while( !glfwWindowShouldClose( window ) ) { const float current_frame_time = glfwGetTime(); const float dt = current_frame_time - last_frame_time;