diff options
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/resource.h | 3 | ||||
-rw-r--r-- | src/resources/subimage.cpp | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/resources/resource.h b/src/resources/resource.h index 1b62c0206..d8f4a7f11 100644 --- a/src/resources/resource.h +++ b/src/resources/resource.h @@ -89,8 +89,9 @@ class Resource */ virtual ~Resource(); - private: std::string mIdPath; /**< Path identifying this resource. */ + + private: time_t mTimeStamp; /**< Time at which the resource was orphaned. */ unsigned mRefCount; /**< Reference count. */ std::string mName; 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 { |