summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2020-05-30 07:59:59 +0300
committerAndrei Karas <akaras@inbox.ru>2020-05-30 08:01:46 +0300
commite623e07433bc81089efdcacd8c089252bcd1db6f (patch)
tree5f6b079e9525931939c37a83d6b290f3c41e3b37
parent1db1d6687934402f77f7bb8d864a3a0ef4b3816a (diff)
downloadplus-e623e07433bc81089efdcacd8c089252bcd1db6f.tar.gz
plus-e623e07433bc81089efdcacd8c089252bcd1db6f.tar.bz2
plus-e623e07433bc81089efdcacd8c089252bcd1db6f.tar.xz
plus-e623e07433bc81089efdcacd8c089252bcd1db6f.zip
Revert "sdl2/opengl: use SDL_GL_GetProcAddress instead glXGetProcAddress when sdl2 is used"
This reverts commit 767d987fb02051621ae087534b42ab956abdfc32. This commit add cast errors.
-rw-r--r--src/render/opengl/mglfunctions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/opengl/mglfunctions.h b/src/render/opengl/mglfunctions.h
index 66c7d15dc..1126b48bb 100644
--- a/src/render/opengl/mglfunctions.h
+++ b/src/render/opengl/mglfunctions.h
@@ -35,7 +35,7 @@ LOGGER_H
#define getFunction(name) nullptr
#elif defined __native_client__
#define getFunction(name) glGetProcAddressREGAL(name)
-#elif defined(USE_SDL2)
+#elif defined(__SWITCH__)
#define getFunction(name) SDL_GL_GetProcAddress(name)
#else // WIN32
#define getFunction(name) glXGetProcAddress(\