Skip to content

Commit

Permalink
Uniformly apply epsilon
Browse files Browse the repository at this point in the history
Removes the epsilon value added to certain parts of the expected min/max
values in conformance/extensions/webgl-depth-texture.html, instead using
only the epsilon applied when actually comparing values.
  • Loading branch information
bsheedy-work committed Apr 3, 2024
1 parent e2f21be commit 7b58145
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions sdk/tests/conformance/extensions/webgl-depth-texture.html
Original file line number Diff line number Diff line change
Expand Up @@ -323,21 +323,18 @@
d01, d01, d11, d11
];
expectedMax = expectedMin.slice();

expectedMin = expectedMin.map(x => x - eps);
expectedMax = expectedMax.map(x => x + eps);
} else {
expectedMin = [
d00-eps, d00, d00, d10-eps,
d00, d00, d00, d10,
d00, d00, d00, d10,
d01-eps, d01, d01, d11-eps,
d00, d00, d00, d10,
d01, d01, d01, d11,
];
expectedMax = [
d00+eps, d10, d10, d10+eps,
d00, d10, d10, d10,
d01, d11, d11, d11,
d01, d11, d11, d11,
d01, d11, d11, d11,
d01+eps, d11, d11, d11+eps,
];
}

Expand Down

0 comments on commit 7b58145

Please sign in to comment.