From 5b4b695ad387eed7ed0a2861ac863ebfb483bb93 Mon Sep 17 00:00:00 2001 From: Oskar Nehlin Date: Mon, 6 Jul 2020 20:14:09 +0200 Subject: [PATCH] Check parent adaptor limits instead of physical device limits (#761) * Check parent adaptor limits instead of physical device limits * Fix pr comment --- wgpu-core/src/instance.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu-core/src/instance.rs b/wgpu-core/src/instance.rs index 36df1a89be..7c4113cea4 100644 --- a/wgpu-core/src/instance.rs +++ b/wgpu-core/src/instance.rs @@ -666,7 +666,7 @@ impl Global { log::warn!("max_bind_groups limit is missing"); } else { assert!( - u32::from(limits.max_bound_descriptor_sets) >= desc.limits.max_bind_groups, + desc.limits.max_bind_groups <= adapter.limits.max_bind_groups, "Adapter does not support the requested max_bind_groups" ); }