summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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(\