diff options
author | Joel Croteau <jcroteau@gmail.com> | 2014-02-13 03:00:52 -0800 |
---|---|---|
committer | Joel Croteau <jcroteau@gmail.com> | 2014-02-19 01:17:17 -0800 |
commit | d1c09ebd46b35ed2b343ebab9afdd1dfc99c63b6 (patch) | |
tree | 6eb850a1530b57c8c0f79027b49555db8cc47882 | |
parent | 1e420afb6d2d1497686d001bda88a4ddbe7e16fb (diff) |
Remove "OES" extensions from GL functions when using GetProcAddress
-rw-r--r-- | system/lib/gl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/system/lib/gl.c b/system/lib/gl.c index e6c60956..bbc77437 100644 --- a/system/lib/gl.c +++ b/system/lib/gl.c @@ -1543,11 +1543,13 @@ GLAPI void APIENTRY emscripten_glVertexAttribDivisor (GLuint index, GLuint divis void* emscripten_GetProcAddress(const char *name_) { char *name = malloc(strlen(name_)+1); strcpy(name, name_); - // remove EXT|ARB suffixes + // remove EXT|ARB|OES suffixes char *end = strstr(name, "EXT"); if (end) *end = 0; end = strstr(name, "ARB"); if (end) *end = 0; + end = strstr(name, "OES"); + if (end) *end = 0; // misc renamings if (!strcmp(name, "glCreateProgramObject")) name = "glCreateProgram"; else if (!strcmp(name, "glUseProgramObject")) name = "glUseProgram"; |