aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-02-21 09:31:24 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-02-21 09:31:24 -0800
commitcb7bdc3ea72f234d333e119ecd9fdb85b55faafe (patch)
tree28e1b605af4722179b1cc3055fd27ce38b648d84 /system
parente71ed8514296ab1fabfa2340b17480a60e8c9100 (diff)
parentac28698a41d8cb1eb944947abe8a5a98a9f137c0 (diff)
Merge pull request #2139 from TV4Fun/memfixes
Fix errors in locale and allocate, and a few other tweaks
Diffstat (limited to 'system')
-rw-r--r--system/lib/gl.c4
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";