From 8b984259c0d7d7af5394defc89a3b64d7b479425 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 30 Sep 2012 15:47:51 +0300 Subject: Some fixes in atlases deletion. --- src/resources/subimage.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/resources/subimage.cpp') 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 -- cgit v1.2.3-60-g2f50