From 29477375a6088aab198baea667d8baf8dc213c89 Mon Sep 17 00:00:00 2001 From: Austin Eng Date: Wed, 28 Jun 2017 10:43:54 -0400 Subject: [PATCH] fix bind group state tracking on pipeline switch --- src/backend/common/CommandBufferStateTracker.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/common/CommandBufferStateTracker.cpp b/src/backend/common/CommandBufferStateTracker.cpp index 74ff8bd869..a8ca51307d 100644 --- a/src/backend/common/CommandBufferStateTracker.cpp +++ b/src/backend/common/CommandBufferStateTracker.cpp @@ -280,6 +280,8 @@ namespace backend { for (uint32_t i = 0; i < kMaxBindGroups; ++i) { if (lastLayout->GetBindGroupLayout(i) == layout->GetBindGroupLayout(i)) { bindgroupsSet |= uint64_t(1) << i; + } else { + break; } } }