ソースを参照

Code tweak

pull/132/head
raysan5 9年前
コミット
afe033412b
1個のファイルの変更1行の追加6行の削除
  1. +1
    -6
      src/textures.c

+ 1
- 6
src/textures.c ファイルの表示

@ -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)
{
rlDeleteRenderTextures(target);
TraceLog(INFO, "[FBO ID %i] Unloaded render texture data from VRAM (GPU)", target.id);
}
if (target.id != 0) rlDeleteRenderTextures(target);
} }
// Get pixel data from image in the form of Color struct array // Get pixel data from image in the form of Color struct array

読み込み中…
キャンセル
保存