Enable the non-fill polygon mode feature if requested (#1016)

* Enable the non-fill polygon mode feature if requested

* Update wgpu-core/src/instance.rs

Co-authored-by: monocodus[bot] <49363530+monocodus[bot]@users.noreply.github.com>

Co-authored-by: monocodus[bot] <49363530+monocodus[bot]@users.noreply.github.com>
This commit is contained in:
Dzmitry Malyshauandmonocodus[bot] authored and GitHub committed 2020-11-06 00:32:04 -05:00
1 parent 6714c4fe7e
commit 73d3f71caa
1 file changed
+4
+4
View File
@@ -716,6 +716,10 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
desc.features
.contains(wgt::Features::MULTI_DRAW_INDIRECT_COUNT),
);
enabled_features.set(
hal::Features::NON_FILL_POLYGON_MODE,
desc.features.contains(wgt::Features::NON_FILL_POLYGON_MODE),
);
let family = adapter
.raw