Skip to content

Commit 3139be0

Browse files
authored
render: fix signature of lock_texture/4 (#883)
1 parent 9679f36 commit 3139be0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

render.c.v

+2-2
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ pub fn update_nv_texture(texture &C.SDL_Texture, const_rect &Rect, const_yplane
626626
u_vpitch)
627627
}
628628

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

631631
// lock_texture locks a portion of the texture for **write-only** pixel access.
632632
//
@@ -653,7 +653,7 @@ fn C.SDL_LockTexture(texture &C.SDL_Texture, const_rect &C.SDL_Rect, pixels void
653653
// NOTE This function is available since SDL 2.0.0.
654654
//
655655
// See also: SDL_UnlockTexture
656-
pub fn lock_texture(texture &Texture, const_rect &Rect, pixels voidptr, pitch &int) int {
656+
pub fn lock_texture(texture &Texture, const_rect &Rect, pixels &voidptr, pitch &int) int {
657657
return C.SDL_LockTexture(texture, const_rect, pixels, pitch)
658658
}
659659

0 commit comments

Comments
 (0)