diff --git a/Ryujinx.Graphics.Gpu/Image/TextureManager.cs b/Ryujinx.Graphics.Gpu/Image/TextureManager.cs index 74c9766a57..9cab343adb 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; }