Просмотр исходного кода

Update short cache textures if modified (#4586)

gdkchan 3 лет назад
Родитель
Сommit
80519af67d
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      Ryujinx.Graphics.Gpu/Image/TexturePool.cs

+ 5 - 1
Ryujinx.Graphics.Gpu/Image/TexturePool.cs

@@ -130,6 +130,10 @@ namespace Ryujinx.Graphics.Gpu.Image
                         return ref descriptor;
                         return ref descriptor;
                     }
                     }
                 }
                 }
+                else
+                {
+                    texture.SynchronizeMemory();
+                }
 
 
                 Items[id] = texture;
                 Items[id] = texture;
 
 
@@ -233,7 +237,7 @@ namespace Ryujinx.Graphics.Gpu.Image
         }
         }
 
 
         /// <summary>
         /// <summary>
-        /// Queues a request to update a texture's mapping. 
+        /// Queues a request to update a texture's mapping.
         /// Mapping is updated later to avoid deleting the texture if it is still sparsely mapped.
         /// Mapping is updated later to avoid deleting the texture if it is still sparsely mapped.
         /// </summary>
         /// </summary>
         /// <param name="texture">Texture with potential mapping change</param>
         /// <param name="texture">Texture with potential mapping change</param>