ソースを参照

REVIEWED: `UnloadRenderTexture()`, additional check

pull/3322/head
Ray 2年前
コミット
97c4333803
1個のファイルの変更5行の追加2行の削除
  1. +5
    -2
      src/rtextures.c

+ 5
- 2
src/rtextures.c ファイルの表示

@ -3793,8 +3793,11 @@ void UnloadRenderTexture(RenderTexture2D target)
{
if (target.id > 0)
{
// Color texture attached to FBO is deleted
rlUnloadTexture(target.texture.id);
if (target.texture.id > 0)
{
// Color texture attached to FBO is deleted
rlUnloadTexture(target.texture.id);
}
// NOTE: Depth texture/renderbuffer is automatically
// queried and deleted before deleting framebuffer

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