b=593850; [webgl] fix gl-scissor test; r=bjacob

This commit is contained in:
Vladimir Vukicevic 2010-09-13 08:55:29 -07:00
parent 2fca7b118a
commit 66e6b95063
2 changed files with 5 additions and 5 deletions

View File

@ -45,10 +45,6 @@ if (!gl) {
var b = new Uint8Array(2 * 2 * 4);
gl.readPixels(0, 0, 2, 2, gl.RGBA, gl.UNSIGNED_BYTE, b);
checkPixel(b, 0, 0, [0, 1, 0, 1]);
checkPixel(b, 1, 0, [0, 0, 0, 0]);
checkPixel(b, 0, 1, [0, 0, 0, 0]);
checkPixel(b, 1, 1, [0, 0, 0, 0]);
function checkPixel(b, x, y, color) {
var offset = (y * 2 + x) * 4;
@ -61,6 +57,11 @@ if (!gl) {
}
assertMsg(match, "pixel at " + x + ", " + y + " is expected value");
}
checkPixel(b, 0, 0, [0, 1, 0, 1]);
checkPixel(b, 1, 0, [0, 0, 0, 0]);
checkPixel(b, 0, 1, [0, 0, 0, 0]);
checkPixel(b, 1, 1, [0, 0, 0, 0]);
}
debug("");

View File

@ -14,7 +14,6 @@ conformance/gl-enum-tests.html
conformance/gl-get-active-attribute.html
conformance/gl-get-calls.html
conformance/gl-object-get-calls.html
conformance/gl-scissor-test.html
conformance/gl-teximage.html
conformance/gl-uniform-arrays.html
conformance/gl-unknown-uniform.html