aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/gfx/renderobjectregistry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sword25/gfx/renderobjectregistry.cpp')
-rw-r--r--engines/sword25/gfx/renderobjectregistry.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/sword25/gfx/renderobjectregistry.cpp b/engines/sword25/gfx/renderobjectregistry.cpp
index edfdbd23a8..347d5fb7cd 100644
--- a/engines/sword25/gfx/renderobjectregistry.cpp
+++ b/engines/sword25/gfx/renderobjectregistry.cpp
@@ -34,14 +34,15 @@
#include "sword25/gfx/renderobjectregistry.h"
-#include "common/ptr.h"
+// TODO: Destroy the singletons when closing the engine;
+// even better, turn them into non-singleton members of
+// e.g. Sword25Engine.
+DECLARE_SINGLETON(Sword25::RenderObjectRegistry)
namespace Sword25 {
#define BS_LOG_PREFIX "RENDEROBJECTREGISTRY"
-Common::ScopedPtr<RenderObjectRegistry> RenderObjectRegistry::_instancePtr;
-
void RenderObjectRegistry::logErrorLn(const char *message) const {
BS_LOG_ERRORLN(message);
}