Compare commits

2 Commits

Author SHA1 Message Date
43f7dc2143 fix: update zgui to work with sdl2 vcpkg package 2023-01-01 13:42:08 -06:00
db7431f2fa feat: add imgui support using zgui 2023-01-01 13:42:08 -06:00

View File

@@ -73,7 +73,7 @@ pub const Gui = struct {
const ctx = SDL.SDL_GL_CreateContext(window) orelse panic();
if (SDL.SDL_GL_MakeCurrent(window, ctx) < 0) panic();
gl.load(ctx, Self.glGetProcAddress) catch {};
try gl.load(ctx, Self.glGetProcAddress);
if (SDL.SDL_GL_SetSwapInterval(@boolToInt(config.config().host.vsync)) < 0) panic();
zgui.init(allocator);