Fix minor issues

This commit is contained in:
Wojtek Figat
2026-02-26 15:52:41 +01:00
parent 8728d88dde
commit 63f19aa4d6
3 changed files with 3 additions and 3 deletions

View File

@@ -743,7 +743,7 @@ void GPUContextWebGPU::OnDrawCall()
for (int32 i = _pendingClears.Count() - 1; i >= 0; i--)
{
auto clear = _pendingClears[i];
if (clear.View != _depthStencil && SpanContains(renderTargets, clear.View))
if (clear.View != _depthStencil && !SpanContains(renderTargets, clear.View))
{
ManualClear(clear);
_pendingClears.RemoveAt(i);