diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-02-21 09:31:24 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-02-21 09:31:24 -0800 |
commit | cb7bdc3ea72f234d333e119ecd9fdb85b55faafe (patch) | |
tree | 28e1b605af4722179b1cc3055fd27ce38b648d84 /system/lib | |
parent | e71ed8514296ab1fabfa2340b17480a60e8c9100 (diff) | |
parent | ac28698a41d8cb1eb944947abe8a5a98a9f137c0 (diff) |
Merge pull request #2139 from TV4Fun/memfixes
Fix errors in locale and allocate, and a few other tweaks
Diffstat (limited to 'system/lib')
-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"; |