summaryrefslogtreecommitdiff
path: root/src/resources/image.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-17 16:50:57 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-17 16:50:57 +0300
commite183a929a3653446a6545ca764e47c47f7b00e50 (patch)
tree0c6002f48674dbeb6d6ce7a8db85cc39994f2770 /src/resources/image.cpp
parentd0e6d477d245610288ab622ecf47426a9dcbc400 (diff)
downloadplus-e183a929a3653446a6545ca764e47c47f7b00e50.tar.gz
plus-e183a929a3653446a6545ca764e47c47f7b00e50.tar.bz2
plus-e183a929a3653446a6545ca764e47c47f7b00e50.tar.xz
plus-e183a929a3653446a6545ca764e47c47f7b00e50.zip
Improve map reduce speed.
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r--src/resources/image.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/resources/image.cpp b/src/resources/image.cpp
index fdcf210c3..29e89d26e 100644
--- a/src/resources/image.cpp
+++ b/src/resources/image.cpp
@@ -54,7 +54,8 @@ Image::Image(SDL_Surface *image, bool hasAlphaChannel, Uint8 *alphaChannel):
mHasAlphaChannel(hasAlphaChannel),
mSDLSurface(image),
mAlphaChannel(alphaChannel),
- mIsAlphaVisible(hasAlphaChannel)
+ mIsAlphaVisible(hasAlphaChannel),
+ mIsAlphaCalculated(false)
{
#ifdef USE_OPENGL
mGLImage = 0;
@@ -90,6 +91,7 @@ Image::Image(GLuint glimage, int width, int height,
mAlphaChannel(0),
mUseAlphaCache(false),
mIsAlphaVisible(true),
+ mIsAlphaCalculated(false),
mGLImage(glimage),
mTexWidth(texWidth),
mTexHeight(texHeight)