summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-28 03:08:30 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-28 03:08:30 +0300
commit5986e192171faa3f7a1422b1f8fd3e561ed5f693 (patch)
tree224533452bb32762c5ca2467c3b8464d0d4c2f2a /src/resources/resourcemanager.cpp
parent282101785316498f3d7f194e94815608d39017b7 (diff)
downloadplus-5986e192171faa3f7a1422b1f8fd3e561ed5f693.tar.gz
plus-5986e192171faa3f7a1422b1f8fd3e561ed5f693.tar.bz2
plus-5986e192171faa3f7a1422b1f8fd3e561ed5f693.tar.xz
plus-5986e192171faa3f7a1422b1f8fd3e561ed5f693.zip
Add source field to each resources.
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r--src/resources/resourcemanager.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp
index 7d80e8bcc..f398c4b45 100644
--- a/src/resources/resourcemanager.cpp
+++ b/src/resources/resourcemanager.cpp
@@ -214,15 +214,16 @@ bool ResourceManager::cleanOrphans(const bool always)
{
#ifdef USE_OPENGL
const Image *const image = dynamic_cast<Image*>(res);
+ const std::string src = image->getSource();
if (image && image->getGLImage())
{
- logger->log("ResourceManager::release(%s, %u)",
- res->mIdPath.c_str(), image->getGLImage());
+ logger->log("ResourceManager::release(%s, %u) %s",
+ res->mIdPath.c_str(), image->getGLImage(), src.c_str());
}
else
{
- logger->log("ResourceManager::release(%s)",
- res->mIdPath.c_str());
+ logger->log("ResourceManager::release(%s) %s",
+ res->mIdPath.c_str(), src.c_str());
}
#else
logger->log("ResourceManager::release(%s)", res->mIdPath.c_str());