From e124615493f4f84d372a99ea604220a8e850dde1 Mon Sep 17 00:00:00 2001 From: cpasjuste Date: Thu, 23 Apr 2020 11:16:31 +0200 Subject: switch: enable opengles2 renderer --- src/render/opengl/mglfunctions.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/render/opengl') diff --git a/src/render/opengl/mglfunctions.h b/src/render/opengl/mglfunctions.h index 11b387fdb..1126b48bb 100644 --- a/src/render/opengl/mglfunctions.h +++ b/src/render/opengl/mglfunctions.h @@ -35,6 +35,8 @@ LOGGER_H #define getFunction(name) nullptr #elif defined __native_client__ #define getFunction(name) glGetProcAddressREGAL(name) +#elif defined(__SWITCH__) +#define getFunction(name) SDL_GL_GetProcAddress(name) #else // WIN32 #define getFunction(name) glXGetProcAddress(\ reinterpret_cast(name)) -- cgit v1.2.3-70-g09d2