From a698e2e44e3dfa157c2b184a184db204b44a6a30 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 4 Mar 2018 02:38:36 +0300 Subject: Show current atlases count in debug window. If use too many images, atlase can be split to more than one. And this is performance issue. --- src/resources/loaders/atlasloader.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/resources/loaders/atlasloader.cpp') diff --git a/src/resources/loaders/atlasloader.cpp b/src/resources/loaders/atlasloader.cpp index 6ca23ddea..aa2585b27 100644 --- a/src/resources/loaders/atlasloader.cpp +++ b/src/resources/loaders/atlasloader.cpp @@ -52,11 +52,13 @@ struct AtlasLoader final } }; -Resource *Loader::getAtlas(const std::string &name, - const StringVect &files) +AtlasResource *Loader::getAtlas(const std::string &name, + const StringVect &files) { AtlasLoader rl = { name, &files }; - return ResourceManager::get("atlas_" + name, AtlasLoader::load, &rl); + return static_cast(ResourceManager::get( + "atlas_" + name, + AtlasLoader::load, &rl)); } #endif // USE_OPENGL -- cgit v1.2.3-70-g09d2