aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/src/app.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/src/app.c b/app/src/app.c
index 58d7b90..e1edf88 100644
--- a/app/src/app.c
+++ b/app/src/app.c
@@ -115,10 +115,11 @@ bool gfx_app_run(const GfxAppDesc* desc, const GfxAppCallbacks* callbacks) {
115 // Request adaptive sync if supported. 115 // Request adaptive sync if supported.
116 glfwSwapInterval(-1); 116 glfwSwapInterval(-1);
117 117
118 // Load GL before calling the application init clalback. 118 // Load GL before calling the application init callback.
119 if (!gladLoadGL()) { 119 // Use the GLFW loader. See: https://github.com/apitrace/apitrace/issues/954
120 LOGE("Failed loading glad!"); 120 if (!gladLoadGLLoader((GLADloadproc)glfwGetProcAddress)) {
121 return 0; 121 LOGE("Failed loading glad");
122 goto cleanup;
122 } 123 }
123 124
124 // Initialize the application's state before setting any callbacks. 125 // Initialize the application's state before setting any callbacks.