diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-17 19:48:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-17 19:53:48 +0300 |
commit | fbbf87a36f5f27851a2e2d17b95a0f17dd82624b (patch) | |
tree | 12a1e11578822f58ead1808dfe8b5fd69b96802e /src/resources/openglimagehelper.h | |
parent | d9838926bee52d1ada15a59dce89d76813533480 (diff) | |
download | mv-fbbf87a36f5f27851a2e2d17b95a0f17dd82624b.tar.gz mv-fbbf87a36f5f27851a2e2d17b95a0f17dd82624b.tar.bz2 mv-fbbf87a36f5f27851a2e2d17b95a0f17dd82624b.tar.xz mv-fbbf87a36f5f27851a2e2d17b95a0f17dd82624b.zip |
Fix possible issues in texture atlas creation with non power of two image sizes.
Diffstat (limited to 'src/resources/openglimagehelper.h')
-rw-r--r-- | src/resources/openglimagehelper.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resources/openglimagehelper.h b/src/resources/openglimagehelper.h index 1afebb736..758817684 100644 --- a/src/resources/openglimagehelper.h +++ b/src/resources/openglimagehelper.h @@ -135,6 +135,9 @@ class OpenGLImageHelper final : public ImageHelper */ static int powerOfTwo(const int input) A_WARN_UNUSED; + static SDL_Surface *convertSurfaceNormalize(SDL_Surface *tmpImage, + int width, int height); + static SDL_Surface *convertSurface(SDL_Surface *tmpImage, int width, int height); |