add ndk to deps, disable srgb by default

This commit is contained in:
griffi-gh 2023-05-21 12:03:41 +02:00
parent 3159273495
commit 986c80111f
4 changed files with 4 additions and 1 deletions

1
Cargo.lock generated
View file

@ -967,6 +967,7 @@ dependencies = [
"kubi-shared",
"log",
"lz4_flex",
"ndk",
"ndk-glue",
"nohash-hasher",
"postcard",

View file

@ -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]

View file

@ -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")));

View file

@ -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)