diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-13 22:18:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-30 02:57:13 +0300 |
commit | 135c19b4337e1ab45cff40a306eadc52a061ddef (patch) | |
tree | 0a163ca1edd542aec5570b7e451034aafb4089dd /src/resources/imageset.cpp | |
parent | 3a2bab265768c219b0c077eef10b69dfe8158131 (diff) | |
download | plus-135c19b4337e1ab45cff40a306eadc52a061ddef.tar.gz plus-135c19b4337e1ab45cff40a306eadc52a061ddef.tar.bz2 plus-135c19b4337e1ab45cff40a306eadc52a061ddef.tar.xz plus-135c19b4337e1ab45cff40a306eadc52a061ddef.zip |
add atlas textures support.
Diffstat (limited to 'src/resources/imageset.cpp')
-rw-r--r-- | src/resources/imageset.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/resources/imageset.cpp b/src/resources/imageset.cpp index 2e10f74a2..6876a7b14 100644 --- a/src/resources/imageset.cpp +++ b/src/resources/imageset.cpp @@ -55,6 +55,16 @@ ImageSet::ImageSet(Image *const img, const int width, const int height, ImageSet::~ImageSet() { delete_all(mImages); +/* + for (std::vector<Image*>::iterator it = mImages.begin(), + it_end = mImages.end(); it != it_end; ++ it) + { + Image *image = *it; + if (image) + image->decRef(); + } + mImages.clear(); +*/ } Image* ImageSet::get(const size_type i) const |