fix: pass by value to c function
This commit is contained in:
parent
656b4a4a8d
commit
1cee1d0534
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ func LoadRenderTexture(width, height int32) RenderTexture2D {
|
|||
func LoadTextureCubemap(image *Image, layout int32) Texture2D {
|
||||
cimage := image.cptr()
|
||||
clayout := (C.int)(layout)
|
||||
ret := C.LoadTextureCubemap(cimage, clayout)
|
||||
ret := C.LoadTextureCubemap(*cimage, clayout)
|
||||
v := newTexture2DFromPointer(unsafe.Pointer(&ret))
|
||||
return v
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue