Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

getProcAddress fixes

  • Loading branch information...
commit 9c66347a6748ccd970897b684dc59b40808c27a2 1 parent 4e9f8bf
Alon Zakai authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/library_gl.js
3  src/library_gl.js
View
@@ -1275,7 +1275,7 @@ var LibraryGL = {
getProcAddress: function(name) {
name = name.replace('EXT', '').replace('ARB', '');
// Do the translation carefully because of closure
- var sig = '';
+ var sig = '', func;
switch (name) {
case 'glCreateShaderObject': case 'glCreateShader': func = _glCreateShader; sig = 'ii'; break;
case 'glCreateProgramObject': case 'glCreateProgram': func = _glCreateProgram; sig = 'ii'; break;
@@ -1373,6 +1373,7 @@ var LibraryGL = {
Module.printErr('WARNING: empty replacement for ' + name + ' called, no-op');
return 0;
};
+ sig = 'v';
}
}
return Runtime.addFunction(func, sig);
Please sign in to comment.
Something went wrong with that request. Please try again.