Skip to content

Commit

Permalink
Enum typo: INVALID_OPERATION -> INVALID_VALUE
Browse files Browse the repository at this point in the history
  • Loading branch information
toji committed Apr 17, 2014
1 parent b8600eb commit 1833557
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -327,7 +327,7 @@
wtu.glErrorShouldBe(gl, gl.INVALID_OPERATION, "invalid dimensions");

gl.compressedTexImage2D(gl.TEXTURE_2D, -1, format, 1, height, 0, data);
wtu.glErrorShouldBe(gl, gl.INVALID_OPERATION, "cannot specify negative mip level");
wtu.glErrorShouldBe(gl, gl.INVALID_VALUE, "cannot specify negative mip level");

// ATC Does not allow use of CompressedTexSubImage
gl.compressedTexSubImage2D(gl.TEXTURE_2D, 0, 0, 0, width, height, format, data);
Expand Down

0 comments on commit 1833557

Please sign in to comment.