aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-08-18 21:52:14 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-08-18 21:52:14 -0700
commit745cbe466448395587ecb5214087bac19c9b1cbe (patch)
tree6342cb18521deed0fe9b8e7f8de7fcccb6fa07d6 /src
parentc4bd45a8f3f3cc80f64cd78a74d014822c412c79 (diff)
parentdcffa595b50ee767fc45e78ffb93cf9075e48c84 (diff)
Merge pull request #1538 from ToadKing/eglGetProcAddress
implement eglGetProcAddress
Diffstat (limited to 'src')
-rw-r--r--src/library_egl.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/library_egl.js b/src/library_egl.js
index 0e96e92f..ff912ed2 100644
--- a/src/library_egl.js
+++ b/src/library_egl.js
@@ -489,6 +489,11 @@ var LibraryEGL = {
eglSwapBuffers: function() {
EGL.setErrorCode(0x3000 /* EGL_SUCCESS */);
},
+
+ eglGetProcAddress__deps: ['emscripten_GetProcAddress'],
+ eglGetProcAddress: function(name_) {
+ return _emscripten_GetProcAddress(Pointer_stringify(name_));
+ },
};
autoAddDeps(LibraryEGL, '$EGL');