diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-04 20:45:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-05 00:21:16 +0300 |
commit | af2f4f8ab50a209502b929082b11a7a07e6c5499 (patch) | |
tree | 4ad3e2efb564fd523deb5a0925941bf4abac319a /src/resources/openglimagehelper.cpp | |
parent | b90595ef486f10d4b5e069e9363a2df5270fe717 (diff) | |
download | manaverse-af2f4f8ab50a209502b929082b11a7a07e6c5499.tar.gz manaverse-af2f4f8ab50a209502b929082b11a7a07e6c5499.tar.bz2 manaverse-af2f4f8ab50a209502b929082b11a7a07e6c5499.tar.xz manaverse-af2f4f8ab50a209502b929082b11a7a07e6c5499.zip |
Fix code style.
Diffstat (limited to 'src/resources/openglimagehelper.cpp')
-rw-r--r-- | src/resources/openglimagehelper.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/resources/openglimagehelper.cpp b/src/resources/openglimagehelper.cpp index 18a220f01..6187764e9 100644 --- a/src/resources/openglimagehelper.cpp +++ b/src/resources/openglimagehelper.cpp @@ -169,14 +169,13 @@ SDL_Surface *OpenGLImageHelper::convertSurface(SDL_Surface *tmpImage, amask = 0xff000000; #endif - SDL_Surface *oldImage = nullptr; if (tmpImage->format->BitsPerPixel != 32 || realWidth != width || realHeight != height || rmask != tmpImage->format->Rmask || gmask != tmpImage->format->Gmask || amask != tmpImage->format->Amask) { - oldImage = tmpImage; + SDL_Surface *oldImage = tmpImage; #ifdef USE_SDL2 SDL_SetSurfaceBlendMode(oldImage, SDL_BLENDMODE_NONE); #endif |