зеркало из https://github.com/mozilla/gecko-dev.git
b=593850; [webgl] fix gl-scissor test; r=bjacob
This commit is contained in:
Родитель
4e9850c5f8
Коммит
4b791cc3a9
|
@ -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("");
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче