diff options
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Image/TextureManager.cs')
-rw-r--r-- | Ryujinx.Graphics.Gpu/Image/TextureManager.cs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Ryujinx.Graphics.Gpu/Image/TextureManager.cs b/Ryujinx.Graphics.Gpu/Image/TextureManager.cs index 74c9766a..9cab343a 100644 --- a/Ryujinx.Graphics.Gpu/Image/TextureManager.cs +++ b/Ryujinx.Graphics.Gpu/Image/TextureManager.cs @@ -154,7 +154,12 @@ namespace Ryujinx.Graphics.Gpu.Image if (_rtColors[index] != color) { _rtColors[index]?.SignalModifying(false); - color?.SignalModifying(true); + + if (color != null) + { + color.SynchronizeMemory(); + color.SignalModifying(true); + } _rtColors[index] = color; } @@ -175,7 +180,12 @@ namespace Ryujinx.Graphics.Gpu.Image if (_rtDepthStencil != depthStencil) { _rtDepthStencil?.SignalModifying(false); - depthStencil?.SignalModifying(true); + + if (depthStencil != null) + { + depthStencil.SynchronizeMemory(); + depthStencil.SignalModifying(true); + } _rtDepthStencil = depthStencil; } |