summaryrefslogtreecommitdiff
path: root/src/render/graphics.cpp
diff options
context:
space:
mode:
authorcpasjuste <cpasjuste@gmail.com>2020-04-23 11:16:31 +0200
committercpasjuste <cpasjuste@gmail.com>2020-04-23 11:16:31 +0200
commite124615493f4f84d372a99ea604220a8e850dde1 (patch)
treeaf5a867b9acc4b528b962066cbf663cca95770b2 /src/render/graphics.cpp
parent177077c6563245504e4aa443cce3bdba7c65db42 (diff)
downloadplus-e124615493f4f84d372a99ea604220a8e850dde1.tar.gz
plus-e124615493f4f84d372a99ea604220a8e850dde1.tar.bz2
plus-e124615493f4f84d372a99ea604220a8e850dde1.tar.xz
plus-e124615493f4f84d372a99ea604220a8e850dde1.zip
switch: enable opengles2 renderer
Diffstat (limited to 'src/render/graphics.cpp')
-rw-r--r--src/render/graphics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/graphics.cpp b/src/render/graphics.cpp
index cd88c25dd..ecc31f8f9 100644
--- a/src/render/graphics.cpp
+++ b/src/render/graphics.cpp
@@ -360,7 +360,7 @@ bool Graphics::setOpenGLMode() restrict2
OpenGLImageHelper::mTextureSize = texSize;
logger->log("OpenGL texture size: %d pixels (rectangle textures)",
OpenGLImageHelper::mTextureSize);
-#ifndef ANDROID
+#if !defined(ANDROID) && !defined(__SWITCH__)
SafeOpenGLImageHelper::mTextureType = GL_TEXTURE_RECTANGLE_ARB;
SafeOpenGLImageHelper::mTextureSize = texSize;
#endif // ANDROID
@@ -370,7 +370,7 @@ bool Graphics::setOpenGLMode() restrict2
glGetIntegerv(GL_MAX_TEXTURE_SIZE, &texSize);
OpenGLImageHelper::mTextureType = GL_TEXTURE_2D;
OpenGLImageHelper::mTextureSize = texSize;
-#ifndef ANDROID
+#if !defined(ANDROID) && !defined(__SWITCH__)
SafeOpenGLImageHelper::mTextureType = GL_TEXTURE_2D;
SafeOpenGLImageHelper::mTextureSize = texSize;
#endif // ANDROID