diff options
author | cpasjuste <cpasjuste@gmail.com> | 2020-04-27 17:13:21 +0200 |
---|---|---|
committer | cpasjuste <cpasjuste@gmail.com> | 2020-04-27 17:13:21 +0200 |
commit | 767d987fb02051621ae087534b42ab956abdfc32 (patch) | |
tree | 43f860cbbad13de19b783243877bfe142bc495be /src/render | |
parent | d19a484de0e76acf2cbe62bcd0aaaf0021f3964f (diff) | |
download | manaverse-767d987fb02051621ae087534b42ab956abdfc32.tar.gz manaverse-767d987fb02051621ae087534b42ab956abdfc32.tar.bz2 manaverse-767d987fb02051621ae087534b42ab956abdfc32.tar.xz manaverse-767d987fb02051621ae087534b42ab956abdfc32.zip |
sdl2/opengl: use SDL_GL_GetProcAddress instead glXGetProcAddress when sdl2 is used
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/opengl/mglfunctions.h | 2 |
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(\ |