瀏覽代碼

Mark texture as modified and sync on I2M fast path (#4449)

gdkchan 3 年之前
父節點
當前提交
58d7a1fe97
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Ryujinx.Graphics.Gpu/Engine/InlineToMemory/InlineToMemoryClass.cs

+ 2 - 0
Ryujinx.Graphics.Gpu/Engine/InlineToMemory/InlineToMemoryClass.cs

@@ -197,7 +197,9 @@ namespace Ryujinx.Graphics.Gpu.Engine.InlineToMemory
 
 
                     if (target != null)
                     if (target != null)
                     {
                     {
+                        target.SynchronizeMemory();
                         target.SetData(data, 0, 0, new GAL.Rectangle<int>(_dstX, _dstY, _lineLengthIn / target.Info.FormatInfo.BytesPerPixel, _lineCount));
                         target.SetData(data, 0, 0, new GAL.Rectangle<int>(_dstX, _dstY, _lineLengthIn / target.Info.FormatInfo.BytesPerPixel, _lineCount));
+                        target.SignalModified();
 
 
                         return;
                         return;
                     }
                     }