summaryrefslogtreecommitdiff
path: root/src/render/opengl/mglfunctions.h
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/opengl/mglfunctions.h
parent177077c6563245504e4aa443cce3bdba7c65db42 (diff)
downloadmanaverse-e124615493f4f84d372a99ea604220a8e850dde1.tar.gz
manaverse-e124615493f4f84d372a99ea604220a8e850dde1.tar.bz2
manaverse-e124615493f4f84d372a99ea604220a8e850dde1.tar.xz
manaverse-e124615493f4f84d372a99ea604220a8e850dde1.zip
switch: enable opengles2 renderer
Diffstat (limited to 'src/render/opengl/mglfunctions.h')
-rw-r--r--src/render/opengl/mglfunctions.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render/opengl/mglfunctions.h b/src/render/opengl/mglfunctions.h
index 11b387fdb..1126b48bb 100644
--- a/src/render/opengl/mglfunctions.h
+++ b/src/render/opengl/mglfunctions.h
@@ -35,6 +35,8 @@ LOGGER_H
#define getFunction(name) nullptr
#elif defined __native_client__
#define getFunction(name) glGetProcAddressREGAL(name)
+#elif defined(__SWITCH__)
+#define getFunction(name) SDL_GL_GetProcAddress(name)
#else // WIN32
#define getFunction(name) glXGetProcAddress(\
reinterpret_cast<const GLubyte*>(name))