diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-27 22:44:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-28 00:30:58 +0300 |
commit | 81b52381745a96fcbae36aa744585ac1a1ff5d18 (patch) | |
tree | 3fe282fc5b6655cd795dfb0b27a195cd1811fabb /src/resources/subimage.cpp | |
parent | 7530325ae71cab358d134ff0c442b206bbe61060 (diff) | |
download | plus-81b52381745a96fcbae36aa744585ac1a1ff5d18.tar.gz plus-81b52381745a96fcbae36aa744585ac1a1ff5d18.tar.bz2 plus-81b52381745a96fcbae36aa744585ac1a1ff5d18.tar.xz plus-81b52381745a96fcbae36aa744585ac1a1ff5d18.zip |
Add debug for binding textures.
Diffstat (limited to 'src/resources/subimage.cpp')
-rw-r--r-- | src/resources/subimage.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/resources/subimage.cpp b/src/resources/subimage.cpp index bc9b0794f..294a966c4 100644 --- a/src/resources/subimage.cpp +++ b/src/resources/subimage.cpp @@ -46,6 +46,9 @@ SubImage::SubImage(Image *parent, SDL_Surface *image, mHasAlphaChannel = mParent->hasAlphaChannel(); mIsAlphaVisible = mHasAlphaChannel; mAlphaChannel = mParent->SDLgetAlphaChannel(); +#ifdef DEBUG_BIND_TEXTURE + mIdPath = parent->getIdPath(); +#endif } else { @@ -97,6 +100,9 @@ SubImage::SubImage(Image *parent, GLuint image, mInternalBounds.y = mParent->mBounds.y; mInternalBounds.w = mParent->mBounds.w; mInternalBounds.h = mParent->mBounds.h; +#ifdef DEBUG_BIND_TEXTURE + mIdPath = parent->getIdPath(); +#endif } else { |