summaryrefslogtreecommitdiff
path: root/servers/rendering/rendering_server_default.cpp
diff options
context:
space:
mode:
authorClay John <claynjohn@gmail.com>2023-01-12 14:39:41 -0800
committerGitHub <noreply@github.com>2023-01-12 14:39:41 -0800
commit21893140eb85ee31adf045ee2df57af9cc19296c (patch)
treee0b7063c4bd6e78c988a6dec99f7503a3e8070b2 /servers/rendering/rendering_server_default.cpp
parente62f57f51dd81ad806357d712402ed88aa296dc2 (diff)
parent03b96c1c4bafac22689226633e9547d49a413305 (diff)
Merge pull request #71289 from RandomShaper/avoid_color_flash
Avoid color flash on window creation and resizing
Diffstat (limited to 'servers/rendering/rendering_server_default.cpp')
-rw-r--r--servers/rendering/rendering_server_default.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/servers/rendering/rendering_server_default.cpp b/servers/rendering/rendering_server_default.cpp
index 4c4b3d13f9..6017eff55e 100644
--- a/servers/rendering/rendering_server_default.cpp
+++ b/servers/rendering/rendering_server_default.cpp
@@ -291,6 +291,10 @@ void RenderingServerDefault::set_boot_image(const Ref<Image> &p_image, const Col
RSG::rasterizer->set_boot_image(p_image, p_color, p_scale, p_use_filter);
}
+Color RenderingServerDefault::get_default_clear_color() {
+ return RSG::texture_storage->get_default_clear_color();
+}
+
void RenderingServerDefault::set_default_clear_color(const Color &p_color) {
RSG::viewport->set_default_clear_color(p_color);
}