diff --git a/api/graphics_api.h b/api/graphics_api.h index 221327dbd5..adfc3e7cb2 100755 --- a/api/graphics_api.h +++ b/api/graphics_api.h @@ -30,6 +30,7 @@ extern "C" { GLenum InitGL(GLvoid); GLenum ReSizeGLScene(GLsizei width, GLsizei height); extern bool app_render(int xs, int ys, double time_of_day); +extern void app_init_gl(void); #ifdef __cplusplus } #endif diff --git a/api/windows_opengl.cpp b/api/windows_opengl.cpp index 7c76f0deb1..425d501e1f 100755 --- a/api/windows_opengl.cpp +++ b/api/windows_opengl.cpp @@ -31,6 +31,7 @@ #include #include "graphics_api.h" +#include "util.h" #include "win_idle_tracker.h" HWND hWnd=NULL; // Holds Our Window Handle @@ -126,8 +127,9 @@ LRESULT CALLBACK WndProc( HWND hWnd, // Handle For This Window ReSizeGLScene(width, height); InitGL(); + app_init_gl(); - app_render(width, height, time(0)); + app_render(width, height, dtime()); SwapBuffers(bdc);