mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 07:21:04 +01:00
Fix check for QUERY_SET_MAX_QUERIES was using >= instead of >
This commit is contained in:
1 parent
cfda54f108
commit
6416bc5b68
1 file changed
+1
-1
@@ -2270,7 +2270,7 @@ impl<A: HalApi> Device<A> {
|
||||
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,
|
||||
|
||||
Reference in new issue
Block a user