summaryrefslogtreecommitdiff
path: root/src/resources/openglimagehelper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-12 23:48:21 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-13 00:36:16 +0300
commitbe4ed51b29f77de23f6ffbf61df65554c6a394ad (patch)
treeb1afa1ff261cddc1f03d512cbfc3702f7cebd61c /src/resources/openglimagehelper.cpp
parentff3c80151bd6ddbf0b963dd28c25dc1c47fd4347 (diff)
downloadmv-be4ed51b29f77de23f6ffbf61df65554c6a394ad.tar.gz
mv-be4ed51b29f77de23f6ffbf61df65554c6a394ad.tar.bz2
mv-be4ed51b29f77de23f6ffbf61df65554c6a394ad.tar.xz
mv-be4ed51b29f77de23f6ffbf61df65554c6a394ad.zip
Not build unsupported render backends on nacl.
Diffstat (limited to 'src/resources/openglimagehelper.cpp')
-rw-r--r--src/resources/openglimagehelper.cpp26
1 files changed, 21 insertions, 5 deletions
diff --git a/src/resources/openglimagehelper.cpp b/src/resources/openglimagehelper.cpp
index d76336ced..0d98fcfe7 100644
--- a/src/resources/openglimagehelper.cpp
+++ b/src/resources/openglimagehelper.cpp
@@ -249,27 +249,43 @@ void OpenGLImageHelper::bindTexture(const GLuint texture)
{
switch (mUseOpenGL)
{
-#ifndef ANDROID
+#ifdef ANDROID
case RENDER_NORMAL_OPENGL:
- NormalOpenGLGraphics::bindTexture(mTextureType, texture);
+ case RENDER_SAFE_OPENGL:
+ case RENDER_MODERN_OPENGL:
+ case RENDER_GLES2_OPENGL:
+ break;
+ case RENDER_GLES_OPENGL:
+ MobileOpenGLGraphics::bindTexture(mTextureType, texture);
break;
+#elif defined(__native_client__)
+ case RENDER_NORMAL_OPENGL:
case RENDER_MODERN_OPENGL:
- ModernOpenGLGraphics::bindTexture(mTextureType, texture);
+ case RENDER_GLES_OPENGL:
break;
case RENDER_SAFE_OPENGL:
SafeOpenGLGraphics::bindTexture(mTextureType, texture);
break;
+ case RENDER_GLES2_OPENGL:
+ MobileOpenGL2Graphics::bindTexture(mTextureType, texture);
+ break;
#else
case RENDER_NORMAL_OPENGL:
- case RENDER_SAFE_OPENGL:
+ NormalOpenGLGraphics::bindTexture(mTextureType, texture);
+ break;
case RENDER_MODERN_OPENGL:
-#endif
+ ModernOpenGLGraphics::bindTexture(mTextureType, texture);
+ break;
+ case RENDER_SAFE_OPENGL:
+ SafeOpenGLGraphics::bindTexture(mTextureType, texture);
+ break;
case RENDER_GLES_OPENGL:
MobileOpenGLGraphics::bindTexture(mTextureType, texture);
break;
case RENDER_GLES2_OPENGL:
MobileOpenGL2Graphics::bindTexture(mTextureType, texture);
break;
+#endif
case RENDER_SOFTWARE:
case RENDER_SDL2_DEFAULT:
case RENDER_NULL: