Skip to content

Commit

Permalink
Add return value to LoadTextureDepth
Browse files Browse the repository at this point in the history
  • Loading branch information
sugarvoid committed Dec 27, 2024
1 parent 453bad2 commit 8e035f7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions raylib/rlgl_cgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8e035f7

Please sign in to comment.