diff options
-rw-r--r-- | src/client.cpp | 5 | ||||
-rw-r--r-- | src/commandhandler.cpp | 1 | ||||
-rw-r--r-- | src/resources/resourcemanager.h | 4 |
3 files changed, 8 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp index 3efd9c593..79ec041ba 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -780,6 +780,11 @@ void Client::gameClear() if (logger) logger->log1("Quitting11"); +#ifdef DEBUG_OPENGL_LEAKS + if (logger) + logger->log("textures left: %d", textures_count); +#endif + delete chatLogger; chatLogger = nullptr; diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp index ee06fe776..1afc332cb 100644 --- a/src/commandhandler.cpp +++ b/src/commandhandler.cpp @@ -65,6 +65,7 @@ #include "resources/image.h" #include "resources/resource.h" #include "resources/resourcemanager.h" +#include "resources/subimage.h" #endif #include "utils/gettext.h" diff --git a/src/resources/resourcemanager.h b/src/resources/resourcemanager.h index 4900b7ce3..0eadf683d 100644 --- a/src/resources/resourcemanager.h +++ b/src/resources/resourcemanager.h @@ -269,10 +269,10 @@ class ResourceManager typedef Resources::iterator ResourceIterator; #ifdef DEBUG_DUMP_LEAKS - Resources* getResources() const + Resources* getResources() { return &mResources; } - Resources* getOrphanedResources() const + Resources* getOrphanedResources() { return &mOrphanedResources; } #endif |