summaryrefslogtreecommitdiff
path: root/src/render/opengl
diff options
context:
space:
mode:
authorcpasjuste <cpasjuste@gmail.com>2020-04-27 17:13:21 +0200
committercpasjuste <cpasjuste@gmail.com>2020-04-27 17:13:21 +0200
commit767d987fb02051621ae087534b42ab956abdfc32 (patch)
tree43f860cbbad13de19b783243877bfe142bc495be /src/render/opengl
parentd19a484de0e76acf2cbe62bcd0aaaf0021f3964f (diff)
downloadplus-767d987fb02051621ae087534b42ab956abdfc32.tar.gz
plus-767d987fb02051621ae087534b42ab956abdfc32.tar.bz2
plus-767d987fb02051621ae087534b42ab956abdfc32.tar.xz
plus-767d987fb02051621ae087534b42ab956abdfc32.zip
sdl2/opengl: use SDL_GL_GetProcAddress instead glXGetProcAddress when sdl2 is used
Diffstat (limited to 'src/render/opengl')
-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 1126b48bb..66c7d15dc 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(__SWITCH__)
+#elif defined(USE_SDL2)
#define getFunction(name) SDL_GL_GetProcAddress(name)
#else // WIN32
#define getFunction(name) glXGetProcAddress(\