From 75a80fdfdce4be53ce7d7b1d02400d3f79a144c0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 26 Oct 2012 13:33:20 +0300 Subject: Android compilation fixes. --- src/resources/openglimagehelper.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/resources') diff --git a/src/resources/openglimagehelper.cpp b/src/resources/openglimagehelper.cpp index 3f825d9db..7e5c77c7f 100644 --- a/src/resources/openglimagehelper.cpp +++ b/src/resources/openglimagehelper.cpp @@ -218,12 +218,17 @@ Image *OpenGLImageHelper::glLoad(SDL_Surface *tmpImage) glGenTextures(1, &texture); switch (mUseOpenGL) { +#ifndef ANDROID case 1: NormalOpenGLGraphics::bindTexture(mTextureType, texture); break; case 2: SafeOpenGLGraphics::bindTexture(mTextureType, texture); break; +#else + case 1: + case 2: +#endif case 3: MobileOpenGLGraphics::bindTexture(mTextureType, texture); break; @@ -250,7 +255,9 @@ Image *OpenGLImageHelper::glLoad(SDL_Surface *tmpImage) glTexParameteri(mTextureType, GL_TEXTURE_MAG_FILTER, GL_NEAREST); } } +#ifndef ANDROID glTexParameteri(mTextureType, GL_TEXTURE_MAX_LEVEL, 0); +#endif glTexImage2D(mTextureType, 0, mInternalTextureType, tmpImage->w, tmpImage->h, -- cgit v1.2.3-60-g2f50