From 7346e695c46bea705d7f9487fc6602b57866048a Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 19 Feb 2026 10:17:14 +0000 Subject: feat(render-demo): обновить поддержку OpenGL с добавлением выбора между GLES2 и Core 3.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/render-demo/Cargo.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'crates/render-demo/Cargo.toml') diff --git a/crates/render-demo/Cargo.toml b/crates/render-demo/Cargo.toml index b7b62cd..d92f538 100644 --- a/crates/render-demo/Cargo.toml +++ b/crates/render-demo/Cargo.toml @@ -13,13 +13,18 @@ msh-core = { path = "../msh-core" } nres = { path = "../nres" } render-core = { path = "../render-core" } texm = { path = "../texm" } -sdl2 = { version = "0.37", optional = true, default-features = false, features = ["bundled", "static-link"] } glow = { version = "0.16", optional = true } image = { version = "0.25", optional = true, default-features = false, features = ["png"] } [dev-dependencies] common = { path = "../common" } +[target.'cfg(target_os = "macos")'.dependencies] +sdl2 = { version = "0.37", optional = true, default-features = false, features = ["use-pkgconfig"] } + +[target.'cfg(not(target_os = "macos"))'.dependencies] +sdl2 = { version = "0.37", optional = true, default-features = false, features = ["bundled", "static-link"] } + [[bin]] name = "parkan-render-demo" path = "src/main.rs" -- cgit v1.2.3