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.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/subimage.cpp b/src/resources/subimage.cpp
index 138805d24..a2d6a8c33 100644
--- a/src/resources/subimage.cpp
+++ b/src/resources/subimage.cpp
@@ -44,6 +44,7 @@ SubImage::SubImage(Image *const parent, SDL_Surface *const image,
mHasAlphaChannel = mParent->hasAlphaChannel();
mIsAlphaVisible = mHasAlphaChannel;
mAlphaChannel = mParent->SDLgetAlphaChannel();
+ mSource = parent->getIdPath();
#ifdef DEBUG_BIND_TEXTURE
mIdPath = parent->getIdPath();
#endif
@@ -98,6 +99,7 @@ SubImage::SubImage(Image *const parent, const GLuint image,
mInternalBounds.y = mParent->mBounds.y;
mInternalBounds.w = mParent->mBounds.w;
mInternalBounds.h = mParent->mBounds.h;
+ mSource = parent->getIdPath();
#ifdef DEBUG_BIND_TEXTURE
mIdPath = parent->getIdPath();
#endif