From 8e035f761c1853fb7e0f18a85857b00a1c93a718 Mon Sep 17 00:00:00 2001 From: sugarvoid Date: Fri, 27 Dec 2024 07:59:46 -0600 Subject: [PATCH] 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 0c517882..bd608097 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