From 5c67ec95d51e3cf4f3ebe755b3824a1cd0f09225 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Tue, 8 Jul 2025 08:24:45 -0700 Subject: Fix tracing with apitrace --- app/src/app.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'app/src') 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) { // Request adaptive sync if supported. glfwSwapInterval(-1); - // Load GL before calling the application init clalback. - if (!gladLoadGL()) { - LOGE("Failed loading glad!"); - return 0; + // Load GL before calling the application init callback. + // Use the GLFW loader. See: https://github.com/apitrace/apitrace/issues/954 + if (!gladLoadGLLoader((GLADloadproc)glfwGetProcAddress)) { + LOGE("Failed loading glad"); + goto cleanup; } // Initialize the application's state before setting any callbacks. -- cgit v1.2.3