shader: remove redundant descriptor sorting and stale null check

This commit is contained in:
nmzik
2026-10-06 05:06:54 +04:00
parent afbb322b32
commit 5a491abbda
2 changed files with 5 additions and 3 deletions
@@ -1657,7 +1657,7 @@ private:
(dword != 0u && !EquivalentValue(m_program, table_guard, read->Arg(4)))) return false;
table_guard = read->Arg(4);
}
if (memory == nullptr || memory->offset > INT32_MAX || (memory->offset & 3u) != 0u ||
if (memory->offset > INT32_MAX || (memory->offset & 3u) != 0u ||
!MemoryIndexBelongsTo(memory_index, *read)) {
return false;
}