diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-25 22:00:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-27 14:38:48 +0300 |
commit | 7d24b0dd32fafa7a85724400d525c5ee7923d0ba (patch) | |
tree | 29057a4808f2f3a9eb9ceb67b345fe05f2ad1ed5 /src/resources/resourcemanager.cpp | |
parent | 7f45d87f62eeef171d4873e95d1de8dfac2446af (diff) | |
download | manaverse-7d24b0dd32fafa7a85724400d525c5ee7923d0ba.tar.gz manaverse-7d24b0dd32fafa7a85724400d525c5ee7923d0ba.tar.bz2 manaverse-7d24b0dd32fafa7a85724400d525c5ee7923d0ba.tar.xz manaverse-7d24b0dd32fafa7a85724400d525c5ee7923d0ba.zip |
Show in resource releases texture id.
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r-- | src/resources/resourcemanager.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp index d6e66ff7e..aae5c3db7 100644 --- a/src/resources/resourcemanager.cpp +++ b/src/resources/resourcemanager.cpp @@ -211,7 +211,21 @@ bool ResourceManager::cleanOrphans(const bool always) } else { +#ifdef USE_OPENGL + const Image *const image = dynamic_cast<Image*>(res); + if (image && image->getGLImage()) + { + logger->log("ResourceManager::release(%s, %u)", + res->mIdPath.c_str(), image->getGLImage()); + } + else + { + logger->log("ResourceManager::release(%s)", + res->mIdPath.c_str()); + } +#else logger->log("ResourceManager::release(%s)", res->mIdPath.c_str()); +#endif const ResourceIterator toErase = iter; ++iter; mOrphanedResources.erase(toErase); |