summaryrefslogtreecommitdiff
path: root/src/render/mglfunctions.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/mglfunctions.h')
-rw-r--r--src/render/mglfunctions.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render/mglfunctions.h b/src/render/mglfunctions.h
index 8be722b98..cc9c95c6f 100644
--- a/src/render/mglfunctions.h
+++ b/src/render/mglfunctions.h
@@ -31,6 +31,8 @@
#define getFunction(name) eglGetProcAddress(name)
#elif defined __APPLE__
#define getFunction(name) nullptr
+#elif defined __native_client__
+#define getFunction(name) SDL_GL_GetProcAddress(name)
#else
#define getFunction(name) glXGetProcAddress(\
reinterpret_cast<const GLubyte*>(name))