Always set default clear color

(cherry picked from commit 0ee8b74101)
This commit is contained in:
eska 2016-04-08 01:30:00 +02:00 committed by Rémi Verschelde
parent cabb80ecf4
commit e654184888
1 changed files with 5 additions and 3 deletions

View File

@ -914,14 +914,16 @@ Error Main::setup2() {
MAIN_PRINT("Main: Image"); MAIN_PRINT("Main: Image");
VisualServer::get_singleton()->set_boot_image(splash, boot_splash_bg_color,false); VisualServer::get_singleton()->set_boot_image(splash, boot_splash_bg_color,false);
#endif #endif
MAIN_PRINT("Main: DCC");
VisualServer::get_singleton()->set_default_clear_color(GLOBAL_DEF("render/default_clear_color",Color(0.3,0.3,0.3)));
MAIN_PRINT("Main: END");
} }
Image icon(app_icon_png); Image icon(app_icon_png);
OS::get_singleton()->set_icon(icon); OS::get_singleton()->set_icon(icon);
} }
MAIN_PRINT("Main: DCC");
VisualServer::get_singleton()->set_default_clear_color(GLOBAL_DEF("render/default_clear_color",Color(0.3,0.3,0.3)));
MAIN_PRINT("Main: END");
GLOBAL_DEF("application/icon",String()); GLOBAL_DEF("application/icon",String());
Globals::get_singleton()->set_custom_property_info("application/icon",PropertyInfo(Variant::STRING,"application/icon",PROPERTY_HINT_FILE,"*.png,*.webp")); Globals::get_singleton()->set_custom_property_info("application/icon",PropertyInfo(Variant::STRING,"application/icon",PROPERTY_HINT_FILE,"*.png,*.webp"));