From ddc54e297741edf61cd24013a896e390d21eb52a Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Sun, 1 Jan 2023 15:56:18 -0600 Subject: [PATCH] fix: ignore missing opengl proc addresses is this really a fix? the error never happens with mach-glfw --- src/platform.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform.zig b/src/platform.zig index c5adb8d..44316a6 100644 --- a/src/platform.zig +++ b/src/platform.zig @@ -64,7 +64,7 @@ pub const Gui = struct { const ctx = SDL.SDL_GL_CreateContext(window) orelse panic(); if (SDL.SDL_GL_MakeCurrent(window, ctx) < 0) panic(); - try gl.load(ctx, Self.glGetProcAddress); + gl.load(ctx, Self.glGetProcAddress) catch {}; if (SDL.SDL_GL_SetSwapInterval(@boolToInt(config.config().host.vsync)) < 0) panic(); const program_id = try compileShaders();