diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/resources/image.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/resources/image.cpp b/src/resources/image.cpp index 9bb824ea1..0c4735043 100644 --- a/src/resources/image.cpp +++ b/src/resources/image.cpp @@ -762,8 +762,8 @@ Image *Image::_GLload(SDL_Surface *tmpImage) #endif SDL_Surface *oldImage = nullptr; - if (tmpImage->format->BitsPerPixel != 32 - || realWidth != width || realHeight != height) + if (tmpImage->format->BitsPerPixel != 32 || realWidth != width + || realHeight != height || rmask != tmpImage->format->Rmask) { oldImage = tmpImage; tmpImage = SDL_CreateRGBSurface(SDL_SWSURFACE, realWidth, realHeight, @@ -776,12 +776,6 @@ Image *Image::_GLload(SDL_Surface *tmpImage) } SDL_BlitSurface(oldImage, nullptr, tmpImage, nullptr); } - else - { - static int cnt = 0; - cnt ++; - logger->log("fast load: %d", cnt); - } GLuint texture; glGenTextures(1, &texture); |