From 6e2f9551ebf72bcea55f863311c223040e011deb Mon Sep 17 00:00:00 2001 From: Keith Simmons Date: Mon, 12 Apr 2021 13:46:17 -0700 Subject: [PATCH] remove vulkan call branch --- src/window/sdl2/mod.rs | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/src/window/sdl2/mod.rs b/src/window/sdl2/mod.rs index 3450348..5637ff3 100644 --- a/src/window/sdl2/mod.rs +++ b/src/window/sdl2/mod.rs @@ -432,25 +432,13 @@ pub fn start_loop( .expect("Failed to create sdl video subsystem"); video_subsystem.text_input().start(); - let mut sdl_window = if cfg!(target_os = "macos") { - video_subsystem - .window("Neovide", logical_size.width, logical_size.height) - .position_centered() - .allow_highdpi() - .resizable() - // .vulkan() call emited as it causes errors on some systems - .build() - .expect("Failed to create window") - } else { - video_subsystem - .window("Neovide", logical_size.width, logical_size.height) - .position_centered() - .allow_highdpi() - .resizable() - .vulkan() - .build() - .expect("Failed to create window") - }; + let mut sdl_window = video_subsystem + .window("Neovide", logical_size.width, logical_size.height) + .position_centered() + .allow_highdpi() + .resizable() + .build() + .expect("Failed to create window"); log::info!("window created"); set_icon(&mut sdl_window);