From 7c8410604d16e960a4ef7727517dd5fd43e9499e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 28 Jul 2013 22:49:25 +0300 Subject: move bools in image. --- src/resources/image.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/resources/image.cpp') diff --git a/src/resources/image.cpp b/src/resources/image.cpp index 88360c870..c19d92d2d 100644 --- a/src/resources/image.cpp +++ b/src/resources/image.cpp @@ -53,12 +53,12 @@ Image::Image(SDL_Surface *const image, const bool hasAlphaChannel0, mTexHeight(0), #endif mBounds(), - mLoaded(false), mAlpha(1.0f), - mHasAlphaChannel(hasAlphaChannel0), mSDLSurface(image), mAlphaChannel(alphaChannel), mAlphaCache(), + mLoaded(false), + mHasAlphaChannel(hasAlphaChannel0), mUseAlphaCache(SDLImageHelper::mEnableAlphaCache), mIsAlphaVisible(hasAlphaChannel0), mIsAlphaCalculated(false) @@ -90,12 +90,12 @@ Image::Image(const GLuint glimage, const int width, const int height, mTexWidth(texWidth), mTexHeight(texHeight), mBounds(), - mLoaded(false), mAlpha(1.0f), - mHasAlphaChannel(true), mSDLSurface(nullptr), mAlphaChannel(nullptr), mAlphaCache(), + mLoaded(false), + mHasAlphaChannel(true), mUseAlphaCache(false), mIsAlphaVisible(true), mIsAlphaCalculated(false) -- cgit v1.2.3-70-g09d2