Skip to content

Commit 5a7b160

Browse files
committed
Followup for #356 - fix incorrect check
1 parent 12d4108 commit 5a7b160

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wgpu-native/src/instance.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ pub fn adapter_request_device<B: GfxBackend>(
509509
BIND_BUFFER_ALIGNMENT % limits.min_uniform_buffer_offset_alignment,
510510
"Adapter uniform buffer offset alignment not compatible with WGPU"
511511
);
512-
if desc.limits.max_bind_groups == 0 {
512+
if limits.max_bound_descriptor_sets == 0 {
513513
log::warn!("max_bind_groups limit is missing");
514514
} else {
515515
assert!(

0 commit comments

Comments
 (0)