From cfba245e11b91e437b97c06934235c5a860eac84 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Sun, 21 May 2023 12:03:41 +0200 Subject: [PATCH] add ndk to deps, disable srgb by default --- Cargo.lock | 1 + kubi/Cargo.toml | 1 + kubi/src/lib.rs | 2 +- kubi/src/rendering.rs | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 6e7f493..28f1ccc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -967,6 +967,7 @@ dependencies = [ "kubi-shared", "log", "lz4_flex", + "ndk", "ndk-glue", "nohash-hasher", "postcard", diff --git a/kubi/Cargo.toml b/kubi/Cargo.toml index 5c148f9..e1d6bda 100644 --- a/kubi/Cargo.toml +++ b/kubi/Cargo.toml @@ -29,6 +29,7 @@ lz4_flex = { version = "0.10", default-features = false, features = ["std", "che static_assertions = "1.1" [target.'cfg(target_os = "android")'.dependencies] +ndk = "0.7" ndk-glue = "0.7" [target.'cfg(target_os = "windows")'.dependencies] diff --git a/kubi/src/lib.rs b/kubi/src/lib.rs index c5f2596..c43306c 100644 --- a/kubi/src/lib.rs +++ b/kubi/src/lib.rs @@ -175,7 +175,7 @@ fn attach_console() { pub fn kubi_main() { //Attach console on release builds on windows #[cfg(all(windows, not(debug_assertions)))] attach_console(); - + //Print version println!("{:─^54}", format!("[ ▄▀ Kubi client v. {} ]", env!("CARGO_PKG_VERSION"))); diff --git a/kubi/src/rendering.rs b/kubi/src/rendering.rs index efb215e..1f52c21 100644 --- a/kubi/src/rendering.rs +++ b/kubi/src/rendering.rs @@ -78,6 +78,7 @@ impl Renderer { }); let cb = ContextBuilder::new() + .with_srgb(false) .with_depth_buffer(24) .with_multisampling(settings.msaa.unwrap_or_default()) .with_vsync(settings.vsync)