Skip to content

Commit

Permalink
change clear_color's default value to grey
Browse files Browse the repository at this point in the history
  • Loading branch information
BlaiZephyr committed Jan 16, 2025
1 parent 3407f1c commit 74ed8d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/config/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/client/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 74ed8d8

Please sign in to comment.