Skip to content

Commit

Permalink
Followup for gfx-rs#356 - fix incorrect check
Browse files Browse the repository at this point in the history
  • Loading branch information
parasyte committed Nov 2, 2019
1 parent 12d4108 commit 5a7b160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wgpu-native/src/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down

0 comments on commit 5a7b160

Please sign in to comment.