Selaa lähdekoodia

Do not try to create a texture pool if shader does not use textures (#7379)

gdkchan 1 vuosi sitten
vanhempi
sitoutus
7d158acc3b
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/Ryujinx.Graphics.Gpu/Shader/ShaderSpecializationState.cs

+ 1 - 1
src/Ryujinx.Graphics.Gpu/Shader/ShaderSpecializationState.cs

@@ -743,7 +743,7 @@ namespace Ryujinx.Graphics.Gpu.Shader
                 constantBufferUsePerStageMask &= ~(1 << index);
             }
 
-            if (checkTextures)
+            if (checkTextures && _allTextures.Length > 0)
             {
                 TexturePool pool = channel.TextureManager.GetTexturePool(poolState.TexturePoolGpuVa, poolState.TexturePoolMaximumId);