From 460c90e8e2f29d39a3e4a6332c89b81e6f88f8a2 Mon Sep 17 00:00:00 2001 From: Rukai Date: Sat, 17 Aug 2019 23:49:06 +1000 Subject: [PATCH] Fix sample_mask field --- wgpu-native/src/device.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu-native/src/device.rs b/wgpu-native/src/device.rs index 79f31ba846..fcb590293c 100644 --- a/wgpu-native/src/device.rs +++ b/wgpu-native/src/device.rs @@ -1672,7 +1672,7 @@ pub fn device_create_render_pipeline( Some(hal::pso::Multisampling { rasterization_samples: sc, sample_shading: None, - sample_mask: !0, + sample_mask: desc.sample_mask as u64, alpha_coverage: desc.alpha_to_coverage_enabled, alpha_to_one: false, })