372: Followup for #356 - fix incorrect check r=kvark a=parasyte

@kvark This fixes the fix created in #356 

The original patch is checking the _requested descriptor limits_, but the backend limits are what needs to be checked for this edge case.

Co-authored-by: Jay Oster <jay@kodewerx.org>
This commit is contained in:
bors[bot]andJay Oster authored and GitHub committed 2019-11-02 23:35:55 +00:00
commit c33b1e81fd
1 file changed
+1 -1
+1 -1
View File
@@ -509,7 +509,7 @@ pub fn adapter_request_device<B: GfxBackend>(
BIND_BUFFER_ALIGNMENT % limits.min_uniform_buffer_offset_alignment,
"Adapter uniform buffer offset alignment not compatible with WGPU"
);
if desc.limits.max_bind_groups == 0 {
if limits.max_bound_descriptor_sets == 0 {
log::warn!("max_bind_groups limit is missing");
} else {
assert!(