Compare commits

..

3 Commits

Author SHA1 Message Date
Rekai Nyangadzayi Musuka afc597fd05 fix: update zgui to work with sdl2 vcpkg package 2023-01-01 15:57:07 -06:00
Rekai Nyangadzayi Musuka f89f448ad9 feat: add imgui support using zgui 2023-01-01 15:57:07 -06:00
Rekai Nyangadzayi Musuka ddc54e2977 fix: ignore missing opengl proc addresses
is this really a fix? the error never happens with mach-glfw
2023-01-01 15:56:18 -06:00
1 changed files with 1 additions and 1 deletions

View File

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