From 1cee1d0534ba25cc53f8e77e35c0f02e592d00a0 Mon Sep 17 00:00:00 2001 From: Snowminx Date: Sun, 24 Dec 2023 19:21:57 -0800 Subject: [PATCH] fix: pass by value to c function --- raylib/rtextures.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raylib/rtextures.go b/raylib/rtextures.go index 0bf775b..0068c62 100644 --- a/raylib/rtextures.go +++ b/raylib/rtextures.go @@ -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 }