summaryrefslogtreecommitdiff
path: root/src/resources/subimage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/subimage.cpp')
-rw-r--r--src/resources/subimage.cpp6
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
{