From be4ed51b29f77de23f6ffbf61df65554c6a394ad Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 12 Dec 2015 23:48:21 +0300 Subject: Not build unsupported render backends on nacl. --- src/resources/openglimagehelper.cpp | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) (limited to 'src/resources/openglimagehelper.cpp') 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: -- cgit v1.2.3-70-g09d2