Skip to content

Commit

Permalink
Use all primary wgpu apis
Browse files Browse the repository at this point in the history
  • Loading branch information
Bandsberg authored and hannobraun committed Dec 16, 2021
1 parent 9df88c2 commit 3e25ca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graphics/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub struct Renderer {

impl Renderer {
pub async fn new(window: &Window) -> Result<Self, InitError> {
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()) };
Expand Down

0 comments on commit 3e25ca6

Please sign in to comment.