From a62130464798d2423f4fc0dcb849fc15e686a6c4 Mon Sep 17 00:00:00 2001 From: Fedor Logachev Date: Mon, 24 Jul 2023 22:58:51 -0600 Subject: [PATCH] Update miniquad version --- Cargo.toml | 4 ++-- src/lib.rs | 7 ------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b813ae73..623e553a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "macroquad" -version = "0.4.1" +version = "0.4.2" authors = ["not-fl3 "] edition = "2018" license = "MIT OR Apache-2.0" @@ -26,7 +26,7 @@ opt-level = 3 all-features = true [dependencies] -miniquad = { version = "=0.4.0-alpha.5", features = ["log-impl"] } +miniquad = { version = "=0.4.0-alpha.6", features = ["log-impl"] } quad-rand = "0.2.1" glam = {version = "0.21", features = ["scalar-math"] } image = { version = "0.24", default-features = false, features = ["png", "tga"] } diff --git a/src/lib.rs b/src/lib.rs index 5b2ba979..82ee9351 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -757,13 +757,6 @@ impl Window { } pub fn from_config(mut config: conf::Conf, future: impl Future + 'static) { - let metal = std::env::args().nth(1).as_deref() == Some("metal"); - config.platform.apple_gfx_api = if metal { - conf::AppleGfxApi::Metal - } else { - conf::AppleGfxApi::OpenGl - }; - miniquad::start(conf::Conf { ..config }, move || { thread_assert::set_thread_id(); unsafe {