Skip to content

Commit 8bff2a0

Browse files
authoredDec 1, 2024··
render: fix signature of lock_texture/4 (#877)
1 parent a9d2bf3 commit 8bff2a0

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
@@ -374,7 +374,7 @@ pub fn update_yuv_texture(texture &Texture, const_rect &Rect, const_yplane &u8,
374374
upitch, const_vplane, vpitch)
375375
}
376376

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

379379
// lock_texture locks a portion of the texture for write-only pixel access.
380380
//
@@ -389,7 +389,7 @@ fn C.SDL_LockTexture(texture &C.SDL_Texture, const_rect &C.SDL_Rect, pixels void
389389
// returns 0 on success, or -1 if the texture is not valid or was not created with ::SDL_TEXTUREACCESS_STREAMING.
390390
//
391391
// See also: SDL_UnlockTexture()
392-
pub fn lock_texture(texture &Texture, const_rect &Rect, pixels voidptr, pitch &int) int {
392+
pub fn lock_texture(texture &Texture, const_rect &Rect, pixels &voidptr, pitch &int) int {
393393
return C.SDL_LockTexture(texture, const_rect, pixels, pitch)
394394
}
395395

0 commit comments

Comments
 (0)
Please sign in to comment.