Skip to content

Commit

Permalink
Merge pull request #73 from BlaiZephyr/clear_color_default
Browse files Browse the repository at this point in the history
change default val of clear_color to grey
  • Loading branch information
Jupeyy authored Jan 16, 2025
2 parents 3407f1c + 74ed8d8 commit 169e64d
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 169e64d

Please sign in to comment.