fix: ignore missing opengl proc addresses
is this really a fix? the error never happens with mach-glfw
This commit is contained in:
parent
ed49d7c460
commit
ddc54e2977
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user