From c6de0cbd285519183c0f1787a2fe0b462a6be30d Mon Sep 17 00:00:00 2001 From: Lam Wei Lun Date: Sat, 25 Jul 2026 13:20:51 +0800 Subject: [PATCH] Use UnloadTexture in UnloadRenderTexture. Ensures that the color buffer unload logging is printed --- src/rtextures.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/rtextures.c b/src/rtextures.c index 9f0fa7645..c8420273d 100644 --- a/src/rtextures.c +++ b/src/rtextures.c @@ -4470,11 +4470,7 @@ void UnloadRenderTexture(RenderTexture2D target) { if (target.id > 0) { - if (target.texture.id > 0) - { - // Color texture attached to FBO is deleted - rlUnloadTexture(target.texture.id); - } + UnloadTexture(target.texture); // NOTE: Depth texture/renderbuffer is automatically // queried and deleted before deleting framebuffer