aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/Image/Texture.cs
diff options
context:
space:
mode:
authorriperiperi <rhy3756547@hotmail.com>2020-09-21 20:51:33 +0100
committerGitHub <noreply@github.com>2020-09-21 16:51:33 -0300
commit5dd6f41ff456c2d9a72d9e6d88c4be851bac1f96 (patch)
tree1d07e75de064ae466db4cc966e9f122389a17157 /Ryujinx.Graphics.Gpu/Image/Texture.cs
parent33f8284bc0f80b18bdce6f8e9a363f5b70388788 (diff)
Make viewStorage still valid after view removal. (#1564)
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Image/Texture.cs')
-rw-r--r--Ryujinx.Graphics.Gpu/Image/Texture.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Gpu/Image/Texture.cs b/Ryujinx.Graphics.Gpu/Image/Texture.cs
index fe129f52..fa3bd242 100644
--- a/Ryujinx.Graphics.Gpu/Image/Texture.cs
+++ b/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();
}