diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-04 23:57:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-04 23:57:06 +0300 |
commit | c0c3782473479460273f1d6e8e0e3e7564ecff89 (patch) | |
tree | a955e6376aa7c41d7bed3b60fd5b532fec5a7d20 /src/resources/sdl2softwareimagehelper.cpp | |
parent | 0c72851a2b47acba27944106eea4619b658d40ca (diff) | |
download | plus-c0c3782473479460273f1d6e8e0e3e7564ecff89.tar.gz plus-c0c3782473479460273f1d6e8e0e3e7564ecff89.tar.bz2 plus-c0c3782473479460273f1d6e8e0e3e7564ecff89.tar.xz plus-c0c3782473479460273f1d6e8e0e3e7564ecff89.zip |
Create empty OpenGL textures in batches.
Diffstat (limited to 'src/resources/sdl2softwareimagehelper.cpp')
-rw-r--r-- | src/resources/sdl2softwareimagehelper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resources/sdl2softwareimagehelper.cpp b/src/resources/sdl2softwareimagehelper.cpp index fa0a51606..2e73409ef 100644 --- a/src/resources/sdl2softwareimagehelper.cpp +++ b/src/resources/sdl2softwareimagehelper.cpp @@ -41,7 +41,7 @@ bool SDL2SoftwareImageHelper::mEnableAlphaCache = false; SDL_PixelFormat *SDL2SoftwareImageHelper::mFormat = nullptr; -Image *SDL2SoftwareImageHelper::load(SDL_Surface *const tmpImage) const +Image *SDL2SoftwareImageHelper::load(SDL_Surface *const tmpImage) { return _SDLload(tmpImage); } @@ -49,7 +49,7 @@ Image *SDL2SoftwareImageHelper::load(SDL_Surface *const tmpImage) const Image *SDL2SoftwareImageHelper::createTextSurface(SDL_Surface *const tmpImage, const int width A_UNUSED, const int height A_UNUSED, - const float alpha) const + const float alpha) { if (!tmpImage) return nullptr; @@ -69,7 +69,7 @@ SDL_Surface* SDL2SoftwareImageHelper::SDLDuplicateSurface(SDL_Surface *const return MSDL_ConvertSurface(tmpImage, tmpImage->format, SDL_SWSURFACE); } -Image *SDL2SoftwareImageHelper::_SDLload(SDL_Surface *tmpImage) const +Image *SDL2SoftwareImageHelper::_SDLload(SDL_Surface *tmpImage) { if (!tmpImage) return nullptr; |