From ff5dfcdf68c20590bf123ade75ca06ed58276372 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sat, 9 May 2020 21:42:00 +0200 Subject: [PATCH] Revert "register RenderingDevice as gdscript singleton" This reverts commit 1058a57666cafadbbeeed5a42a72f0e4f627a389. RenderingDevice is meant to be instantiated in scripts, not a singleton. This actually doesn't work properly right now, but reduz will fix it. --- servers/register_server_types.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/servers/register_server_types.cpp b/servers/register_server_types.cpp index eb92cf55e36..60217002fbf 100644 --- a/servers/register_server_types.cpp +++ b/servers/register_server_types.cpp @@ -218,7 +218,6 @@ void register_server_singletons() { Engine::get_singleton()->add_singleton(Engine::Singleton("DisplayServer", DisplayServer::get_singleton())); Engine::get_singleton()->add_singleton(Engine::Singleton("RenderingServer", RenderingServer::get_singleton())); - Engine::get_singleton()->add_singleton(Engine::Singleton("RenderingDevice", RenderingDevice::get_singleton())); Engine::get_singleton()->add_singleton(Engine::Singleton("AudioServer", AudioServer::get_singleton())); Engine::get_singleton()->add_singleton(Engine::Singleton("PhysicsServer2D", PhysicsServer2D::get_singleton())); Engine::get_singleton()->add_singleton(Engine::Singleton("PhysicsServer3D", PhysicsServer3D::get_singleton()));