fix: ignore missing opengl proc addresses

is this really a fix? the error never happens with mach-glfw
This commit is contained in:
Rekai Nyangadzayi Musuka 2023-01-01 15:56:18 -06:00
parent ed49d7c460
commit ddc54e2977
1 changed files with 1 additions and 1 deletions

View File

@ -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();