From 74ed8d8ace9cf58437709c792d7dbee692a337a9 Mon Sep 17 00:00:00 2001 From: blaiz Date: Thu, 16 Jan 2025 21:20:49 +0100 Subject: [PATCH] change clear_color's default value to grey --- lib/config/src/config.rs | 2 +- src/client/client.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/config/src/config.rs b/lib/config/src/config.rs index 02e38c3..30e5827 100644 --- a/lib/config/src/config.rs +++ b/lib/config/src/config.rs @@ -190,7 +190,7 @@ pub struct ConfigBackend { #[default = false] pub vsync: bool, /// Default clear color - #[default = ConfRgb::black()] + #[default = ConfRgb::grey()] pub clear_color: ConfRgb, #[default = "auto"] pub gpu: String, diff --git a/src/client/client.rs b/src/client/client.rs index 50378bf..b1500bf 100644 --- a/src/client/client.rs +++ b/src/client/client.rs @@ -2284,10 +2284,10 @@ impl ClientNativeImpl { match name.as_str() { "gl.vsync" => { + // update vsync val in backend self.on_vsync_change(); } "gl.clear_color" => { - // update vsync val in backend self.graphics.backend_handle.update_clear_color(ColorRgba { r: self.config.engine.gl.clear_color.r as f32 / 255.0, g: self.config.engine.gl.clear_color.g as f32 / 255.0,