summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-25 15:36:23 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-25 15:36:23 +0300
commit735a20bc923d0a7bf4b0ca0e4d005413ca8de0f8 (patch)
tree6c8bd501bee54a9320206ed1792ead2b15743471 /src/resources/resourcemanager.cpp
parent2ed588669e77c3dc9d6cae36ee148cab3125b901 (diff)
downloadplus-735a20bc923d0a7bf4b0ca0e4d005413ca8de0f8.tar.gz
plus-735a20bc923d0a7bf4b0ca0e4d005413ca8de0f8.tar.bz2
plus-735a20bc923d0a7bf4b0ca0e4d005413ca8de0f8.tar.xz
plus-735a20bc923d0a7bf4b0ca0e4d005413ca8de0f8.zip
add code for image creation/deletion.
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r--src/resources/resourcemanager.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp
index 03cc2bc41..a3adce7bb 100644
--- a/src/resources/resourcemanager.cpp
+++ b/src/resources/resourcemanager.cpp
@@ -448,6 +448,9 @@ bool ResourceManager::addResource(const std::string &idPath,
{
resource->incRef();
resource->mIdPath = idPath;
+#ifdef DEBUG_IMAGES
+ logger->log("set name %p, %s", resource, resource->mIdPath.c_str());
+#endif
mResources[idPath] = resource;
return true;
}
@@ -517,6 +520,9 @@ Resource *ResourceManager::get(const std::string &idPath, const generator fun,
{
resource->incRef();
resource->mIdPath = idPath;
+#ifdef DEBUG_IMAGES
+ logger->log("set name %p, %s", resource, resource->mIdPath.c_str());
+#endif
mResources[idPath] = resource;
cleanOrphans();
}
@@ -531,6 +537,9 @@ Resource *ResourceManager::get(const std::string &idPath, const generator fun,
{
resource->incRef();
resource->mIdPath = idPath;
+#ifdef DEBUG_IMAGES
+ logger->log("set name %p, %s", resource, resource->mIdPath.c_str());
+#endif
}
else
{