diff options
author | 3gg <3gg@shellblade.net> | 2025-07-08 08:24:45 -0700 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2025-07-08 08:24:45 -0700 |
commit | 5c67ec95d51e3cf4f3ebe755b3824a1cd0f09225 (patch) | |
tree | fc6a01f56d9d2a22133bf96c9d7ab61f04d9e295 | |
parent | 9d6a2d71e4c8c3bb5ef8d9088a5cec985f869b9b (diff) |
-rw-r--r-- | app/src/app.c | 9 |
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. |