Skip to content

Commit

Permalink
Do not leak state between adjacent XFB tests
Browse files Browse the repository at this point in the history
Unbind the buffer from the COPY_WRITE_BUFFER target
so that it is bound only as XFB for the next test.
  • Loading branch information
lexaknyazev committed Jul 24, 2024
1 parent 9186c30 commit b8aa19f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@
wtu.glErrorShouldBe(gl, gl.INVALID_OPERATION, "copyBufferSubData with double bound buffer");
gl.copyBufferSubData(gl.COPY_READ_BUFFER, gl.COPY_WRITE_BUFFER, 0, 0, 1);
wtu.glErrorShouldBe(gl, gl.INVALID_OPERATION, "copyBufferSubData with double bound buffer");
gl.bindBuffer(gl.COPY_WRITE_BUFFER, null);

debug("<hr/>Test that rejected operations do not change the bound buffer size");

Expand Down

0 comments on commit b8aa19f

Please sign in to comment.