summaryrefslogtreecommitdiff
path: root/src/resources/subimage.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-30 15:47:51 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-30 19:38:07 +0300
commit8b984259c0d7d7af5394defc89a3b64d7b479425 (patch)
treef67aef7fc0ffb2fb0d54dc042b49bb33805a4a0e /src/resources/subimage.cpp
parent2c9fbdd6e9579549735eeb4cdfd83eef7e4ec55e (diff)
downloadmv-8b984259c0d7d7af5394defc89a3b64d7b479425.tar.gz
mv-8b984259c0d7d7af5394defc89a3b64d7b479425.tar.bz2
mv-8b984259c0d7d7af5394defc89a3b64d7b479425.tar.xz
mv-8b984259c0d7d7af5394defc89a3b64d7b479425.zip
Some fixes in atlases deletion.
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