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/imagehelper.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/imagehelper.cpp')
-rw-r--r-- | src/resources/imagehelper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/imagehelper.cpp b/src/resources/imagehelper.cpp index 0092d132b..329a487da 100644 --- a/src/resources/imagehelper.cpp +++ b/src/resources/imagehelper.cpp @@ -40,7 +40,7 @@ ImageHelper *surfaceImageHelper = nullptr; bool ImageHelper::mEnableAlpha = true; RenderType ImageHelper::mUseOpenGL = RENDER_SOFTWARE; -Image *ImageHelper::load(SDL_RWops *const rw) const +Image *ImageHelper::load(SDL_RWops *const rw) { SDL_Surface *const tmpImage = loadPng(rw); if (!tmpImage) @@ -55,7 +55,7 @@ Image *ImageHelper::load(SDL_RWops *const rw) const return image; } -Image *ImageHelper::load(SDL_RWops *const rw, Dye const &dye) const +Image *ImageHelper::load(SDL_RWops *const rw, Dye const &dye) { SDL_Surface *const tmpImage = loadPng(rw); if (!tmpImage) |