diff options
author | ToadKing <toadking@toadking.com> | 2013-08-18 02:51:19 -0400 |
---|---|---|
committer | ToadKing <toadking@toadking.com> | 2013-08-18 02:51:19 -0400 |
commit | dcffa595b50ee767fc45e78ffb93cf9075e48c84 (patch) | |
tree | 0d82257b3e0779a378d6b1745c06b1bd298320b6 /src | |
parent | 2dc7b87600df12ff7cf6cabe42cd4c9d251d44de (diff) |
implement eglGetProcAddress
Diffstat (limited to 'src')
-rw-r--r-- | src/library_egl.js | 5 |
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'); |