Jelajahi Sumber

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

gdkchan 1 tahun lalu
induk
melakukan
7d158acc3b

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

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