|
@@ -154,7 +154,12 @@ namespace Ryujinx.Graphics.Gpu.Image
|
|
|
if (_rtColors[index] != color)
|
|
if (_rtColors[index] != color)
|
|
|
{
|
|
{
|
|
|
_rtColors[index]?.SignalModifying(false);
|
|
_rtColors[index]?.SignalModifying(false);
|
|
|
- color?.SignalModifying(true);
|
|
|
|
|
|
|
+
|
|
|
|
|
+ if (color != null)
|
|
|
|
|
+ {
|
|
|
|
|
+ color.SynchronizeMemory();
|
|
|
|
|
+ color.SignalModifying(true);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
_rtColors[index] = color;
|
|
_rtColors[index] = color;
|
|
|
}
|
|
}
|
|
@@ -175,7 +180,12 @@ namespace Ryujinx.Graphics.Gpu.Image
|
|
|
if (_rtDepthStencil != depthStencil)
|
|
if (_rtDepthStencil != depthStencil)
|
|
|
{
|
|
{
|
|
|
_rtDepthStencil?.SignalModifying(false);
|
|
_rtDepthStencil?.SignalModifying(false);
|
|
|
- depthStencil?.SignalModifying(true);
|
|
|
|
|
|
|
+
|
|
|
|
|
+ if (depthStencil != null)
|
|
|
|
|
+ {
|
|
|
|
|
+ depthStencil.SynchronizeMemory();
|
|
|
|
|
+ depthStencil.SignalModifying(true);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
_rtDepthStencil = depthStencil;
|
|
_rtDepthStencil = depthStencil;
|
|
|
}
|
|
}
|