From 6416bc5b68d7a676c8fa8f3998da0e630d47af01 Mon Sep 17 00:00:00 2001 From: Aron Granberg Date: Sun, 27 Jun 2021 17:08:49 +0200 Subject: [PATCH] Fix check for QUERY_SET_MAX_QUERIES was using >= instead of > --- wgpu-core/src/device/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu-core/src/device/mod.rs b/wgpu-core/src/device/mod.rs index 0bfe1b7623..6a087d0466 100644 --- a/wgpu-core/src/device/mod.rs +++ b/wgpu-core/src/device/mod.rs @@ -2270,7 +2270,7 @@ impl Device { return Err(Error::ZeroCount); } - if desc.count >= wgt::QUERY_SET_MAX_QUERIES { + if desc.count > wgt::QUERY_SET_MAX_QUERIES { return Err(Error::TooManyQueries { count: desc.count, maximum: wgt::QUERY_SET_MAX_QUERIES,