Skip to content

Commit

Permalink
PVRTC tests call non-existent helper function (KhronosGroup#3079)
Browse files Browse the repository at this point in the history
Replace drawQuad with clearAndDrawUnitQuad.
  • Loading branch information
grorg authored May 22, 2020
1 parent cd886c7 commit 1735e89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@
wtu.glErrorShouldBe(gl, gl.NO_ERROR, "uploading compressed texture");
gl.generateMipmap(gl.TEXTURE_2D);
wtu.glErrorShouldBe(gl, gl.INVALID_OPERATION, "trying to generate mipmaps from compressed texture");
wtu.drawQuad(gl);
wtu.clearAndDrawUnitQuad(gl);
compareRect(width, height, test.channels, width, height, uncompressedData, data, format);

gl.compressedTexImage2D(gl.TEXTURE_2D, 0, format, width, height, 1, data);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@
wtu.glErrorShouldBe(gl, gl.NO_ERROR, "uploading compressed texture");
gl.generateMipmap(gl.TEXTURE_2D);
wtu.glErrorShouldBe(gl, gl.INVALID_OPERATION, "trying to generate mipmaps from compressed texture");
wtu.drawQuad(gl);
wtu.clearAndDrawUnitQuad(gl);
compareRect(width, height, test.channels, width, height, uncompressedData, data, format, undefined, "NEAREST");
// Test again with linear filtering.
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);
Expand Down

0 comments on commit 1735e89

Please sign in to comment.