Skip to content

Commit

Permalink
Change canvas height each iteration in multisample-corruption test. (#…
Browse files Browse the repository at this point in the history
…3691)

Attempting to make this test a bit more stressful.
  • Loading branch information
kenrussell authored Sep 18, 2024
1 parent 2c6e2b5 commit 5824354
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sdk/tests/js/tests/iterable-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,15 @@ IterableTest = (function() {

gl.uniformMatrix4fv(uniforms.u_modelViewProjMatrix.location, false, identityMat);

var extraHeight = 0;

function test() {
var gl2 = wtu.create3DContext(null, {antialias: true});

gl2.canvas.width = gl2.canvas.height = 1024;
gl2.canvas.width = 1024;
// Make this test a little more stressful by slightly changing the canvas's height each iteration.
gl2.canvas.height = 1024 + extraHeight;
extraHeight = (1 + extraHeight) % 4;
gl2.canvas.style.width = gl2.canvas.style.height = "1px";
document.body.appendChild(gl2.canvas);

Expand Down

0 comments on commit 5824354

Please sign in to comment.