Configure SDL2 to use OpenGL #4

Merged
paoda merged 7 commits from opengl into main 2022-10-20 01:41:51 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 4b4bc7f894 - Show all commits

View File

@ -246,7 +246,7 @@ pub const Gui = struct {
fn glGetProcAddress(ctx: SDL.SDL_GLContext, proc: [:0]const u8) ?*anyopaque { fn glGetProcAddress(ctx: SDL.SDL_GLContext, proc: [:0]const u8) ?*anyopaque {
_ = ctx; _ = ctx;
return SDL.SDL_GL_GetProcAddress(@ptrCast([*c]const u8, proc)); return SDL.SDL_GL_GetProcAddress(proc.ptr);
} }
}; };