Skip to content

Commit 211b67c

Browse files
committed
f2f07a9: METAL: skip setting sampler state if the slot is out of bounds
1 parent 4f69fb9 commit 211b67c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

prog/engine/drv/drv3d_Metal/render.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,8 @@ class Render
996996

997997
__forceinline void setSampler(StageStorage &storage, int slot, id<MTLSamplerState> sampler, float bias)
998998
{
999-
G_ASSERT(slot < 16);
999+
if (slot >= 16)
1000+
return;
10001001
if (sampler)
10011002
{
10021003
if (samplers[slot] != sampler)

0 commit comments

Comments
 (0)