diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-25 21:31:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-25 21:31:25 +0300 |
commit | 8910645b6941f7295dee704fd47933d9ec6927b6 (patch) | |
tree | 4db8d0e3e6f214ed11f8bd26c726a12ed30bb705 /src/resources/image.cpp | |
parent | 4e59f92aedaa8f19897a1e70fdaa983730d6ba03 (diff) | |
download | plus-8910645b6941f7295dee704fd47933d9ec6927b6.tar.gz plus-8910645b6941f7295dee704fd47933d9ec6927b6.tar.bz2 plus-8910645b6941f7295dee704fd47933d9ec6927b6.tar.xz plus-8910645b6941f7295dee704fd47933d9ec6927b6.zip |
Fix Image and SubImage memory calculaiton functions.
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r-- | src/resources/image.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resources/image.cpp b/src/resources/image.cpp index ad5d0d91c..b323f8a16 100644 --- a/src/resources/image.cpp +++ b/src/resources/image.cpp @@ -478,7 +478,8 @@ int Image::calcMemoryLocal() { // +++ this calculation can be wrong for SDL2 int sz = sizeof(Image) + - sizeof(std::map<float, SDL_Surface*>); + sizeof(std::map<float, SDL_Surface*>) + + Resource::calcMemoryLocal(); if (mSDLSurface) { sz += CAST_S32(mAlphaCache.size()) * |