diff --git a/src/main.rs b/src/main.rs index 1a16297..5dd2e03 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,7 +21,6 @@ use vec2::Vec2; use winit::{ event::{Event, WindowEvent}, event_loop::{ControlFlow, EventLoop, EventLoopBuilder, EventLoopProxy}, - platform::windows::WindowBuilderExtWindows, window::{Window, WindowBuilder}, }; mod image_io; @@ -70,20 +69,15 @@ impl WindowHandler { let size = window.inner_size(); - /*#[cfg(windows)] + #[cfg(windows)] let instance_descriptor = wgpu::InstanceDescriptor { backends: wgpu::Backends::GL, ..Default::default() - };*/ + }; - //#[cfg(not(windows))] + #[cfg(not(windows))] let instance_descriptor = wgpu::InstanceDescriptor::default(); - let instance_descriptor = wgpu::InstanceDescriptor { - backends: wgpu::Backends::DX12, - ..Default::default() - }; - let instance = wgpu::Instance::new(instance_descriptor); let surface = unsafe { instance.create_surface(&window).unwrap() }; let adapter = instance