Skip to content

Commit f45c64a

Browse files
authored
render: fix signature of lock_texture/4 (#879)
1 parent ca48c68 commit f45c64a

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
@@ -413,7 +413,7 @@ pub fn update_yuv_texture(texture &Texture, const_rect &Rect, const_yplane &u8,
413413
upitch, const_vplane, vpitch)
414414
}
415415

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

418418
// lock_texture locks a portion of the texture for write-only pixel access.
419419
//
@@ -428,7 +428,7 @@ fn C.SDL_LockTexture(texture &C.SDL_Texture, const_rect &C.SDL_Rect, pixels void
428428
// returns 0 on success, or -1 if the texture is not valid or was not created with ::SDL_TEXTUREACCESS_STREAMING.
429429
//
430430
// See also: SDL_UnlockTexture()
431-
pub fn lock_texture(texture &Texture, const_rect &Rect, pixels voidptr, pitch &int) int {
431+
pub fn lock_texture(texture &Texture, const_rect &Rect, pixels &voidptr, pitch &int) int {
432432
return C.SDL_LockTexture(texture, const_rect, pixels, pitch)
433433
}
434434

0 commit comments

Comments
 (0)