Ensure has_os_features is safely called as it can't be called from within the construct of RenderingServerDefault on which it relies

This commit is contained in:
Bastiaan Olij 2022-05-28 21:09:23 +10:00
parent 0810b0d471
commit 69b66ec425
5 changed files with 18 additions and 2 deletions

View file

@ -2821,7 +2821,9 @@ RenderingServer::RenderingServer() {
thread_pool = memnew(RendererThreadPool);
singleton = this;
}
void RenderingServer::init() {
GLOBAL_DEF_RST("rendering/textures/vram_compression/import_bptc", false);
GLOBAL_DEF_RST("rendering/textures/vram_compression/import_s3tc", true);
GLOBAL_DEF_RST("rendering/textures/vram_compression/import_etc", false);