From 8e035f761c1853fb7e0f18a85857b00a1c93a718 Mon Sep 17 00:00:00 2001 From: sugarvoid Date: Fri, 27 Dec 2024 07:59:46 -0600 Subject: [PATCH 1/2] Add return value to `LoadTextureDepth` --- raylib/rlgl_cgo.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/raylib/rlgl_cgo.go b/raylib/rlgl_cgo.go index 0c51788..bd60809 100644 --- a/raylib/rlgl_cgo.go +++ b/raylib/rlgl_cgo.go @@ -621,11 +621,12 @@ func SetVertexAttributeDivisor(index uint32, divisor int32) { } // LoadTextureDepth - Load depth texture/renderbuffer (to be attached to fbo) -func LoadTextureDepth(width, height int32, useRenderBuffer bool) { +func LoadTextureDepth(width, height int32, useRenderBuffer bool) uint32 { cwidth := C.int(width) cheight := C.int(height) cuseRenderBuffer := C.bool(useRenderBuffer) - C.rlLoadTextureDepth(cwidth, cheight, cuseRenderBuffer) + cid := C.rlLoadTextureDepth(cwidth, cheight, cuseRenderBuffer) + return uint32(cid) } // LoadFramebuffer - Load an empty framebuffer From ff0ecd0e76f028bc9ee632c60beeafa6b580d386 Mon Sep 17 00:00:00 2001 From: sugarvoid Date: Sat, 28 Dec 2024 05:23:49 -0600 Subject: [PATCH 2/2] Add return value in `rlgl_purego.go` --- raylib/rlgl_purego.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/raylib/rlgl_purego.go b/raylib/rlgl_purego.go index e0fd23b..1439cfa 100644 --- a/raylib/rlgl_purego.go +++ b/raylib/rlgl_purego.go @@ -764,8 +764,8 @@ func SetVertexAttributeDivisor(index uint32, divisor int32) { } // LoadTextureDepth - Load depth texture/renderbuffer (to be attached to fbo) -func LoadTextureDepth(width, height int32, useRenderBuffer bool) { - rlLoadTextureDepth(width, height, useRenderBuffer) +func LoadTextureDepth(width, height int32, useRenderBuffer bool) uint32{ + return rlLoadTextureDepth(width, height, useRenderBuffer) } // LoadFramebuffer - Load an empty framebuffer