From 3e25ca6324c8aeaedc75f953d79986137d24572a Mon Sep 17 00:00:00 2001 From: Bandsberg Date: Thu, 16 Dec 2021 20:09:24 +0100 Subject: [PATCH] Use all primary wgpu apis --- src/graphics/renderer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/renderer.rs b/src/graphics/renderer.rs index d70e56cf0..6ba2bdd65 100644 --- a/src/graphics/renderer.rs +++ b/src/graphics/renderer.rs @@ -34,7 +34,7 @@ pub struct Renderer { impl Renderer { pub async fn new(window: &Window) -> Result { - let instance = wgpu::Instance::new(wgpu::Backends::VULKAN); + let instance = wgpu::Instance::new(wgpu::Backends::PRIMARY); // This is sound, as `window` is an object to create a surface upon. let surface = unsafe { instance.create_surface(window.inner()) };