Compare commits
3 Commits
43f7dc2143
...
afc597fd05
Author | SHA1 | Date |
---|---|---|
Rekai Nyangadzayi Musuka | afc597fd05 | |
Rekai Nyangadzayi Musuka | f89f448ad9 | |
Rekai Nyangadzayi Musuka | ddc54e2977 |
|
@ -73,7 +73,7 @@ pub const Gui = struct {
|
||||||
const ctx = SDL.SDL_GL_CreateContext(window) orelse panic();
|
const ctx = SDL.SDL_GL_CreateContext(window) orelse panic();
|
||||||
if (SDL.SDL_GL_MakeCurrent(window, ctx) < 0) 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();
|
if (SDL.SDL_GL_SetSwapInterval(@boolToInt(config.config().host.vsync)) < 0) panic();
|
||||||
|
|
||||||
zgui.init(allocator);
|
zgui.init(allocator);
|
||||||
|
|
Loading…
Reference in New Issue