Compare commits

...

3 Commits

Author SHA1 Message Date
WilliamWsyHK
0b870072dd
Merge 6082176d05 into 7d158acc3b 2024-09-30 20:19:38 +02:00
gdkchan
7d158acc3b
Do not try to create a texture pool if shader does not use textures (#7379) 2024-09-30 11:41:07 -03:00
WilliamWsyHK
6082176d05 Do not use foreach while updating original enumerable 2024-09-03 23:55:04 +08:00
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -313,9 +313,9 @@ namespace Ryujinx.Ava.UI.ViewModels
public void DeleteAll()
{
foreach (var mod in Mods)
while (Mods.Count > 0)
{
Delete(mod);
Delete(Mods[0]);
}
Mods.Clear();