Compare commits
3 Commits
43f7dc2143
...
afc597fd05
Author | SHA1 | Date | |
---|---|---|---|
afc597fd05 | |||
f89f448ad9 | |||
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…
x
Reference in New Issue
Block a user