Explorar el Código

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

gdkchan hace 1 año
padre
commit
7d158acc3b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);