From 692e82d521f303d91b19f820f92d6ddbfd1c0aa7 Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Thu, 11 Feb 2021 14:47:35 -0500 Subject: [PATCH] Reset the bindings on the push constant change --- wgpu-core/src/command/bind.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wgpu-core/src/command/bind.rs b/wgpu-core/src/command/bind.rs index a2063b4134..92682c9512 100644 --- a/wgpu-core/src/command/bind.rs +++ b/wgpu-core/src/command/bind.rs @@ -179,9 +179,7 @@ impl Binder { if let Some(old_id) = old_id_opt { let old = &guard[old_id]; // root constants are the base compatibility property - if old.push_constant_ranges != new.push_constant_ranges - && bind_range.end != bind_range.start - { + if old.push_constant_ranges != new.push_constant_ranges { bind_range.start = 0; } }