Compare gl.getError() to an integer instead of a boolean.
Merge pull request #40 from Ms2ger/master

Fix a bug in bufferSubData