浏览代码

Make viewStorage still valid after view removal. (#1564)

riperiperi 5 年之前
父节点
当前提交
5dd6f41ff4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Ryujinx.Graphics.Gpu/Image/Texture.cs

+ 1 - 1
Ryujinx.Graphics.Gpu/Image/Texture.cs

@@ -259,7 +259,7 @@ namespace Ryujinx.Graphics.Gpu.Image
         {
             _views.Remove(texture);
 
-            texture._viewStorage = null;
+            texture._viewStorage = texture;
 
             DeleteIfNotUsed();
         }