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,