Permalink
Browse files

Compare gl.getError() to an integer instead of a boolean.

  • Loading branch information...
Ms2ger committed Mar 24, 2013
1 parent a742a44 commit 46d35ad345c22cb11580148135e1a0edf44e1e6c
Showing with 2 additions and 2 deletions.
  1. +2 −2 webgl/bufferSubData.html
View
@@ -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);
@@ -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.