Skip to content

Commit

Permalink
Do not try to create a texture pool if shader does not use textures (…
Browse files Browse the repository at this point in the history
…#7379)
  • Loading branch information
gdkchan authored Sep 30, 2024
1 parent 5dbba07 commit 7d158ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ private bool Matches(GpuChannel channel, ref GpuChannelPoolState poolState, bool
constantBufferUsePerStageMask &= ~(1 << index);
}

if (checkTextures)
if (checkTextures && _allTextures.Length > 0)
{
TexturePool pool = channel.TextureManager.GetTexturePool(poolState.TexturePoolGpuVa, poolState.TexturePoolMaximumId);

Expand Down

0 comments on commit 7d158ac

Please sign in to comment.