summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2023-02-24 16:19:25 +0100
committerRay <[email protected]>2023-02-24 16:19:25 +0100
commitcb2ba3675c3928a2937f84e4c6503a659375ca0a (patch)
treefdf808d3b3cc3dbe4a54b7b2e165d2ef994bdcf9 /src
parentca98a84d68ea6f70112de57a68866b4bb55edbe5 (diff)
downloadraylib-cb2ba3675c3928a2937f84e4c6503a659375ca0a.tar.gz
raylib-cb2ba3675c3928a2937f84e4c6503a659375ca0a.zip
REVIEWED: `rlUnloadFramebuffer()` #2937
Diffstat (limited to 'src')
-rw-r--r--src/rlgl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index f7d73eda..7e9fee68 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -3473,7 +3473,7 @@ void rlUnloadFramebuffer(unsigned int id)
unsigned int depthIdU = (unsigned int)depthId;
if (depthType == GL_RENDERBUFFER) glDeleteRenderbuffers(1, &depthIdU);
- else if (depthType == GL_RENDERBUFFER) glDeleteTextures(1, &depthIdU);
+ else if (depthType == GL_TEXTURE) glDeleteTextures(1, &depthIdU);
// NOTE: If a texture object is deleted while its image is attached to the *currently bound* framebuffer,
// the texture image is automatically detached from the currently bound framebuffer.