summaryrefslogtreecommitdiff
path: root/gfx-app/src
diff options
context:
space:
mode:
Diffstat (limited to 'gfx-app/src')
-rw-r--r--gfx-app/src/gfx_app.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gfx-app/src/gfx_app.c b/gfx-app/src/gfx_app.c
index 018e997..31f8448 100644
--- a/gfx-app/src/gfx_app.c
+++ b/gfx-app/src/gfx_app.c
@@ -37,8 +37,12 @@ static void loop(GfxApp* app) {
37 double time_budget = 0.0; 37 double time_budget = 0.0;
38 Timer timer = timer_make(); 38 Timer timer = timer_make();
39 39
40 // Warm up the rendering before entering the main loop. A renderer can compile 40 // Warm up the update to initialize the application's state.
41 // shaders and do other initialization the first time it renders a scene. 41 (*app->callbacks.update)(app->app_state, time, update_dt);
42
43 // Warm up the rendering before entering the main loop. A renderer can
44 // compile shaders and do other initialization the first time it renders a
45 // scene.
42 (*app->callbacks.render)(app->app_state); 46 (*app->callbacks.render)(app->app_state);
43 glfwSwapBuffers(app->window); 47 glfwSwapBuffers(app->window);
44 48