Skip to content

Commit

Permalink
render: fix signature of lock_texture/4 (#880)
Browse files Browse the repository at this point in the history
  • Loading branch information
larpon authored Dec 1, 2024
1 parent bd9c4ef commit 5a1d7b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions render.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ pub fn update_nv_texture(texture &C.SDL_Texture, const_rect &Rect, const_yplane
u_vpitch)
}

fn C.SDL_LockTexture(texture &C.SDL_Texture, const_rect &C.SDL_Rect, pixels voidptr, pitch &int) int
fn C.SDL_LockTexture(texture &C.SDL_Texture, const_rect &C.SDL_Rect, pixels &voidptr, pitch &int) int

// lock_texture locks a portion of the texture for **write-only** pixel access.
//
Expand All @@ -555,7 +555,7 @@ fn C.SDL_LockTexture(texture &C.SDL_Texture, const_rect &C.SDL_Rect, pixels void
// SDL_GetError() for more information.
//
// See also: SDL_UnlockTexture
pub fn lock_texture(texture &Texture, const_rect &Rect, pixels voidptr, pitch &int) int {
pub fn lock_texture(texture &Texture, const_rect &Rect, pixels &voidptr, pitch &int) int {
return C.SDL_LockTexture(texture, const_rect, pixels, pitch)
}

Expand Down

0 comments on commit 5a1d7b0

Please sign in to comment.