From 735a20bc923d0a7bf4b0ca0e4d005413ca8de0f8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 25 Aug 2013 15:36:23 +0300 Subject: add code for image creation/deletion. --- src/resources/subimage.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/resources/subimage.cpp') 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 -- cgit v1.2.3-60-g2f50