From e623e07433bc81089efdcacd8c089252bcd1db6f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 30 May 2020 07:59:59 +0300 Subject: Revert "sdl2/opengl: use SDL_GL_GetProcAddress instead glXGetProcAddress when sdl2 is used" This reverts commit 767d987fb02051621ae087534b42ab956abdfc32. This commit add cast errors. --- src/render/opengl/mglfunctions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(\ -- cgit v1.2.3-70-g09d2