summaryrefslogtreecommitdiff
path: root/src/resources/subimage.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/subimage.cpp
parent2ed588669e77c3dc9d6cae36ee148cab3125b901 (diff)
downloadmanaverse-735a20bc923d0a7bf4b0ca0e4d005413ca8de0f8.tar.gz
manaverse-735a20bc923d0a7bf4b0ca0e4d005413ca8de0f8.tar.bz2
manaverse-735a20bc923d0a7bf4b0ca0e4d005413ca8de0f8.tar.xz
manaverse-735a20bc923d0a7bf4b0ca0e4d005413ca8de0f8.zip
add code for image creation/deletion.
Diffstat (limited to 'src/resources/subimage.cpp')
-rw-r--r--src/resources/subimage.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/resources/subimage.cpp b/src/resources/subimage.cpp
index c7e250b78..b2343c71c 100644
--- a/src/resources/subimage.cpp
+++ b/src/resources/subimage.cpp
@@ -28,6 +28,10 @@
#include "safeopenglgraphics.h"
#endif
+#ifdef DEBUG_IMAGES
+#include "logger.h"
+#endif
+
#include "client.h"
#include "debug.h"
@@ -47,6 +51,9 @@ SubImage::SubImage(Image *const parent, SDL_Surface *const image,
mIsAlphaVisible = mHasAlphaChannel;
mAlphaChannel = mParent->SDLgetAlphaChannel();
mSource = parent->getIdPath();
+#ifdef DEBUG_IMAGES
+ logger->log("set name2 %p, %s", this, mSource.c_str());
+#endif
#ifdef DEBUG_BIND_TEXTURE
mIdPath = parent->getIdPath();
#endif
@@ -103,6 +110,9 @@ SubImage::SubImage(Image *const parent, const GLuint image,
mInternalBounds.w = mParent->mBounds.w;
mInternalBounds.h = mParent->mBounds.h;
mSource = parent->getIdPath();
+#ifdef DEBUG_IMAGES
+ logger->log("set name2 %p, %s", this, mSource.c_str());
+#endif
#ifdef DEBUG_BIND_TEXTURE
mIdPath = parent->getIdPath();
#endif