From 81b52381745a96fcbae36aa744585ac1a1ff5d18 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Jun 2012 22:44:43 +0300 Subject: Add debug for binding textures. --- src/resources/subimage.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/resources/subimage.cpp') 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 { -- cgit v1.2.3-60-g2f50