From 767d987fb02051621ae087534b42ab956abdfc32 Mon Sep 17 00:00:00 2001 From: cpasjuste Date: Mon, 27 Apr 2020 17:13:21 +0200 Subject: sdl2/opengl: use SDL_GL_GetProcAddress instead glXGetProcAddress when sdl2 is used --- src/render/opengl/mglfunctions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(\ -- cgit v1.2.3-70-g09d2