Skip to content

Commit

Permalink
Fix a typo in WebGL2 buffer data tests (in test-fail case) (KhronosGr…
Browse files Browse the repository at this point in the history
…oup#2961)

Fixes a bug where the code inside a loop tries to use a variable
that does not exist, likely due to a typo.
  • Loading branch information
mmatyas authored and kainino0x committed Oct 30, 2019
1 parent dd55f3c commit 887bc42
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 @@ -52,7 +52,7 @@
var offset = sourceByteOffset / testCase.size;
for (var ii = 0; ii < size; ++ii) {
if (readbackView[ii] != data[ii]) {
testFailed("expected data at " + ii + ": " + data[iit] + ", got " + readbackView[ii]);
testFailed("expected data at " + ii + ": " + data[ii] + ", got " + readbackView[ii]);
pass = false;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
var offset = sourceByteOffset / testCase.size;
for (var ii = 0; ii < size; ++ii) {
if (readbackView[ii] != data[ii]) {
testFailed("expected data at " + ii + ": " + data[iit] + ", got " + readbackView[ii]);
testFailed("expected data at " + ii + ": " + data[ii] + ", got " + readbackView[ii]);
pass = false;
}
}
Expand Down

0 comments on commit 887bc42

Please sign in to comment.