Browse files

getProcAddress fixes

  • Loading branch information...
1 parent 4e9f8bf commit 9c66347a6748ccd970897b684dc59b40808c27a2 @kripken committed Jan 1, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/library_gl.js
View
3 src/library_gl.js
@@ -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);

0 comments on commit 9c66347

Please sign in to comment.