add ndk to deps, disable srgb by default

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

1
Cargo.lock generated
View file

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

View file

@ -29,6 +29,7 @@ lz4_flex = { version = "0.10", default-features = false, features = ["std", "che
static_assertions = "1.1" static_assertions = "1.1"
[target.'cfg(target_os = "android")'.dependencies] [target.'cfg(target_os = "android")'.dependencies]
ndk = "0.7"
ndk-glue = "0.7" ndk-glue = "0.7"
[target.'cfg(target_os = "windows")'.dependencies] [target.'cfg(target_os = "windows")'.dependencies]

View file

@ -78,6 +78,7 @@ impl Renderer {
}); });
let cb = ContextBuilder::new() let cb = ContextBuilder::new()
.with_srgb(false)
.with_depth_buffer(24) .with_depth_buffer(24)
.with_multisampling(settings.msaa.unwrap_or_default()) .with_multisampling(settings.msaa.unwrap_or_default())
.with_vsync(settings.vsync) .with_vsync(settings.vsync)