Skip to content

Commit

Permalink
Make viewStorage still valid after view removal. (#1564)
Browse files Browse the repository at this point in the history
  • Loading branch information
riperiperi authored Sep 21, 2020
1 parent 33f8284 commit 5dd6f41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Ryujinx.Graphics.Gpu/Image/Texture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ private void RemoveView(Texture texture)
{
_views.Remove(texture);

texture._viewStorage = null;
texture._viewStorage = texture;

DeleteIfNotUsed();
}
Expand Down

0 comments on commit 5dd6f41

Please sign in to comment.