瀏覽代碼

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

gdkchan 1 年之前
父節點
當前提交
7d158acc3b
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);