Code tweak

This commit is contained in:
raysan5 2016-06-21 13:45:13 +02:00
parent c28a5fbd62
commit afe033412b

View File

@ -422,12 +422,7 @@ void UnloadTexture(Texture2D texture)
// Unload render texture from GPU memory // Unload render texture from GPU memory
void UnloadRenderTexture(RenderTexture2D target) void UnloadRenderTexture(RenderTexture2D target)
{ {
if (target.id != 0) if (target.id != 0) rlDeleteRenderTextures(target);
{
rlDeleteRenderTextures(target);
TraceLog(INFO, "[FBO ID %i] Unloaded render texture data from VRAM (GPU)", target.id);
}
} }
// Get pixel data from image in the form of Color struct array // Get pixel data from image in the form of Color struct array