diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-30 15:47:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-30 19:38:07 +0300 |
commit | 8b984259c0d7d7af5394defc89a3b64d7b479425 (patch) | |
tree | f67aef7fc0ffb2fb0d54dc042b49bb33805a4a0e /src/resources/subimage.cpp | |
parent | 2c9fbdd6e9579549735eeb4cdfd83eef7e4ec55e (diff) | |
download | manaverse-8b984259c0d7d7af5394defc89a3b64d7b479425.tar.gz manaverse-8b984259c0d7d7af5394defc89a3b64d7b479425.tar.bz2 manaverse-8b984259c0d7d7af5394defc89a3b64d7b479425.tar.xz manaverse-8b984259c0d7d7af5394defc89a3b64d7b479425.zip |
Some fixes in atlases deletion.
Diffstat (limited to 'src/resources/subimage.cpp')
-rw-r--r-- | src/resources/subimage.cpp | 2 |
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 |