Use UnloadTexture in UnloadRenderTexture. Ensures that the color buffer unload logging is printed

This commit is contained in:
Lam Wei Lun 2026-07-25 13:20:51 +08:00
commit c6de0cbd28

View file

@ -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