diff options
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/sdlimagehelper.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/resources/sdlimagehelper.cpp b/src/resources/sdlimagehelper.cpp index 881368fd3..337d1cb53 100644 --- a/src/resources/sdlimagehelper.cpp +++ b/src/resources/sdlimagehelper.cpp @@ -137,10 +137,7 @@ Image *SDLImageHelper::createTextSurface(SDL_Surface *const tmpImage, return nullptr; Image *img; - bool hasAlpha = false; - const bool converted = false; - const int sz = tmpImage->w * tmpImage->h; // The alpha channel to be filled with alpha values @@ -195,9 +192,6 @@ Image *SDLImageHelper::createTextSurface(SDL_Surface *const tmpImage, return nullptr; } - if (converted) - SDL_FreeSurface(tmpImage); - img = new Image(image, hasAlpha, alphaChannel); img->mAlpha = alpha; return img; |