Jelajahi Sumber

Fix texture bindings using wrong sampler pool in some cases (#3583)

gdkchan 3 tahun lalu
induk
melakukan
e87e8b012c
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs

+ 1 - 1
Ryujinx.Graphics.Gpu/Image/TextureBindingsManager.cs

@@ -553,7 +553,7 @@ namespace Ryujinx.Graphics.Gpu.Image
 
                 specStateMatches &= specState.MatchesTexture(stage, index, descriptor);
 
-                Sampler sampler = _samplerPool?.Get(samplerId);
+                Sampler sampler = samplerPool?.Get(samplerId);
 
                 ITexture hostTexture = texture?.GetTargetTexture(bindingInfo.Target);
                 ISampler hostSampler = sampler?.GetHostSampler(texture);