diff options
author | gdkchan <gab.dark.100@gmail.com> | 2022-12-21 17:35:28 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-21 17:35:28 -0300 |
commit | 1cca3e99ab04e56aa4b30f3fa83f240f8d0fd29d (patch) | |
tree | 16514e81d0c17fed6b3ac05abce9e4fc8b66f909 | |
parent | 55a23e5ec83de891a1fb2945a751d48c2d699163 (diff) |
GPU: Force rebind when pool changes (#4129)1.1.486
-rw-r--r-- | Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs b/Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs index 0787ce3d..bbfb704d 100644 --- a/Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs +++ b/Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs @@ -320,10 +320,15 @@ namespace Ryujinx.Graphics.Gpu.Image // Check if the texture pool has been modified since bindings were last committed. // If it wasn't, then it's possible to avoid looking up textures again when the handle remains the same. - bool poolModified = _cachedTexturePool != texturePool || _cachedSamplerPool != samplerPool; + if (_cachedTexturePool != texturePool || _cachedSamplerPool != samplerPool) + { + Rebind(); + + _cachedTexturePool = texturePool; + _cachedSamplerPool = samplerPool; + } - _cachedTexturePool = texturePool; - _cachedSamplerPool = samplerPool; + bool poolModified = false; if (texturePool != null) { |