aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/Image/TexturePool.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Image/TexturePool.cs')
-rw-r--r--Ryujinx.Graphics.Gpu/Image/TexturePool.cs17
1 files changed, 1 insertions, 16 deletions
diff --git a/Ryujinx.Graphics.Gpu/Image/TexturePool.cs b/Ryujinx.Graphics.Gpu/Image/TexturePool.cs
index fc99fc99..0348ca01 100644
--- a/Ryujinx.Graphics.Gpu/Image/TexturePool.cs
+++ b/Ryujinx.Graphics.Gpu/Image/TexturePool.cs
@@ -77,22 +77,7 @@ namespace Ryujinx.Graphics.Gpu.Image
}
else
{
- if (texture.ChangedSize)
- {
- // Texture changed size at one point - it may be a different size than the sampler expects.
- // This can be triggered when the size is changed by a size hint on copy or draw, but the texture has been sampled before.
-
- int baseLevel = descriptor.UnpackBaseLevel();
- int width = Math.Max(1, descriptor.UnpackWidth() >> baseLevel);
- int height = Math.Max(1, descriptor.UnpackHeight() >> baseLevel);
-
- if (texture.Info.Width != width || texture.Info.Height != height)
- {
- texture.ChangeSize(width, height, texture.Info.DepthOrLayers);
- }
- }
-
- // Memory is automatically synchronized on texture creation.
+ // On the path above (texture not yet in the pool), memory is automatically synchronized on texture creation.
texture.SynchronizeMemory();
}