summaryrefslogtreecommitdiff
path: root/src/resources/openglimagehelper.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-17 19:48:30 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-17 19:53:48 +0300
commitfbbf87a36f5f27851a2e2d17b95a0f17dd82624b (patch)
tree12a1e11578822f58ead1808dfe8b5fd69b96802e /src/resources/openglimagehelper.h
parentd9838926bee52d1ada15a59dce89d76813533480 (diff)
downloadplus-fbbf87a36f5f27851a2e2d17b95a0f17dd82624b.tar.gz
plus-fbbf87a36f5f27851a2e2d17b95a0f17dd82624b.tar.bz2
plus-fbbf87a36f5f27851a2e2d17b95a0f17dd82624b.tar.xz
plus-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.h3
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);