chore: remove unnecessary ptr cast

This commit is contained in:
Rekai Nyangadzayi Musuka 2022-10-21 05:13:12 -03:00
parent 4b7ef52a7a
commit 5b9d3d0960
1 changed files with 1 additions and 1 deletions

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