mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-26 05:38:20 -06:00
add ndk to deps, disable srgb by default
This commit is contained in:
parent
3159273495
commit
986c80111f
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -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",
|
||||||
|
|
|
@ -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]
|
||||||
|
|
|
@ -175,7 +175,7 @@ fn attach_console() {
|
||||||
pub fn kubi_main() {
|
pub fn kubi_main() {
|
||||||
//Attach console on release builds on windows
|
//Attach console on release builds on windows
|
||||||
#[cfg(all(windows, not(debug_assertions)))] attach_console();
|
#[cfg(all(windows, not(debug_assertions)))] attach_console();
|
||||||
|
|
||||||
//Print version
|
//Print version
|
||||||
println!("{:─^54}", format!("[ ▄▀ Kubi client v. {} ]", env!("CARGO_PKG_VERSION")));
|
println!("{:─^54}", format!("[ ▄▀ Kubi client v. {} ]", env!("CARGO_PKG_VERSION")));
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue