diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/library.js | 3 | ||||
-rw-r--r-- | src/library_gl.js | 7 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/library.js b/src/library.js index c8c33709..87bfd73b 100644 --- a/src/library.js +++ b/src/library.js @@ -614,8 +614,9 @@ var Library = { // unistd.h sysconf: function(name_) { + // XXX we only handle _SC_PAGE_SIZE/PAGESIZE for now, 30 on linux, 29 on OS X... be careful here! switch(name_) { - case 30: return PAGE_SIZE; // _SC_PAGE_SIZE + case 29: case 30: return PAGE_SIZE; default: throw 'unknown sysconf param: ' + name_; } }, diff --git a/src/library_gl.js b/src/library_gl.js index ad0134eb..a20611c9 100644 --- a/src/library_gl.js +++ b/src/library_gl.js @@ -1,5 +1,8 @@ mergeInto(Library, { - glGetString: function() { - }, + glGetString: function() {}, + + glGenVertexArrays: function() {}, + + glBindVertexArray: function() {}, }); |