diff options
author | cpasjuste <cpasjuste@gmail.com> | 2020-04-23 11:16:31 +0200 |
---|---|---|
committer | cpasjuste <cpasjuste@gmail.com> | 2020-04-23 11:16:31 +0200 |
commit | e124615493f4f84d372a99ea604220a8e850dde1 (patch) | |
tree | af5a867b9acc4b528b962066cbf663cca95770b2 /src/resources/openglimagehelper.cpp | |
parent | 177077c6563245504e4aa443cce3bdba7c65db42 (diff) | |
download | manaverse-e124615493f4f84d372a99ea604220a8e850dde1.tar.gz manaverse-e124615493f4f84d372a99ea604220a8e850dde1.tar.bz2 manaverse-e124615493f4f84d372a99ea604220a8e850dde1.tar.xz manaverse-e124615493f4f84d372a99ea604220a8e850dde1.zip |
switch: enable opengles2 renderer
Diffstat (limited to 'src/resources/openglimagehelper.cpp')
-rw-r--r-- | src/resources/openglimagehelper.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/resources/openglimagehelper.cpp b/src/resources/openglimagehelper.cpp index ce7bb0ac3..557d9d0a5 100644 --- a/src/resources/openglimagehelper.cpp +++ b/src/resources/openglimagehelper.cpp @@ -263,13 +263,15 @@ void OpenGLImageHelper::bindTexture(const GLuint texture) case RENDER_GLES_OPENGL: MobileOpenGLGraphics::bindTexture(mTextureType, texture); break; -#elif defined(__native_client__) +#elif defined(__native_client__) || defined(__SWITCH__) case RENDER_NORMAL_OPENGL: case RENDER_MODERN_OPENGL: case RENDER_GLES_OPENGL: break; case RENDER_SAFE_OPENGL: +#ifndef __SWITCH__ SafeOpenGLGraphics::bindTexture(mTextureType, texture); +#endif break; case RENDER_GLES2_OPENGL: MobileOpenGL2Graphics::bindTexture(mTextureType, texture); @@ -336,7 +338,9 @@ Image *OpenGLImageHelper::glLoad(SDL_Surface *tmpImage, mUseOpenGL != RENDER_GLES_OPENGL && mUseOpenGL != RENDER_GLES2_OPENGL) { +#ifndef __SWITCH__ glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); +#endif #ifdef OPENGLERRORS graphicsManager.logError(); #endif // OPENGLERRORS |