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 | |
parent | 177077c6563245504e4aa443cce3bdba7c65db42 (diff) | |
download | plus-e124615493f4f84d372a99ea604220a8e850dde1.tar.gz plus-e124615493f4f84d372a99ea604220a8e850dde1.tar.bz2 plus-e124615493f4f84d372a99ea604220a8e850dde1.tar.xz plus-e124615493f4f84d372a99ea604220a8e850dde1.zip |
switch: enable opengles2 renderer
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/openglimagehelper.cpp | 6 | ||||
-rw-r--r-- | src/resources/safeopenglimagehelper.cpp | 2 | ||||
-rw-r--r-- | src/resources/safeopenglimagehelper.h | 2 |
3 files changed, 7 insertions, 3 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 diff --git a/src/resources/safeopenglimagehelper.cpp b/src/resources/safeopenglimagehelper.cpp index 463b89507..4d94578c6 100644 --- a/src/resources/safeopenglimagehelper.cpp +++ b/src/resources/safeopenglimagehelper.cpp @@ -22,7 +22,7 @@ #include "resources/safeopenglimagehelper.h" -#if defined(USE_OPENGL) && !defined(ANDROID) +#if defined(USE_OPENGL) && !defined(ANDROID) && !defined(__SWITCH__) #include "graphicsmanager.h" diff --git a/src/resources/safeopenglimagehelper.h b/src/resources/safeopenglimagehelper.h index 4a2e9346b..7b2098b11 100644 --- a/src/resources/safeopenglimagehelper.h +++ b/src/resources/safeopenglimagehelper.h @@ -25,7 +25,7 @@ #include "localconsts.h" -#if defined(USE_OPENGL) && !defined(ANDROID) +#if defined(USE_OPENGL) && !defined(ANDROID) && !defined(__SWITCH__) #ifndef GL_TEXTURE_RECTANGLE_ARB #define GL_TEXTURE_RECTANGLE_ARB 0x84F5 |