Skip to content

Commit

Permalink
Compare gl.getError() to an integer instead of a boolean.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ms2ger committed Mar 24, 2013
1 parent a742a44 commit 46d35ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webgl/bufferSubData.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<script>
test(function() {
var gl = getGl();
assert_false(gl.getError());
assert_equals(gl.getError(), WebGLRenderingContext.NO_ERROR);

var b = gl.createBuffer();
gl.bindBuffer(gl.ARRAY_BUFFER, b);
Expand All @@ -21,6 +21,6 @@
var nan = 0 / 0;
gl.bufferSubData(gl.ARRAY_BUFFER, nan, a);

assert_false(gl.getError());
assert_equals(gl.getError(), WebGLRenderingContext.NO_ERROR);
});
</script>

0 comments on commit 46d35ad

Please sign in to comment.