chore: remove unnecessary ptr cast

This commit is contained in:
Rekai Nyangadzayi Musuka 2022-09-23 04:55:11 -03:00
parent 6e37b44e0d
commit c5e37a21da
1 changed files with 1 additions and 1 deletions

View File

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