diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2024-09-30 11:41:07 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-30 11:41:07 -0300 |
| commit | 7d158acc3b5826a08941d6e8d50d3a3897021bcd (patch) | |
| tree | cd006ee04212aa7d73bd306b650875d1ae96cd63 | |
| parent | 5dbba07e33e83c9047dcbb701c9655edbbe89086 (diff) | |
Do not try to create a texture pool if shader does not use textures (#7379)
| -rw-r--r-- | src/Ryujinx.Graphics.Gpu/Shader/ShaderSpecializationState.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Ryujinx.Graphics.Gpu/Shader/ShaderSpecializationState.cs b/src/Ryujinx.Graphics.Gpu/Shader/ShaderSpecializationState.cs index 98acb6f2..1230c058 100644 --- a/src/Ryujinx.Graphics.Gpu/Shader/ShaderSpecializationState.cs +++ b/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); |
