mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
b=593850; [webgl] fix gl-scissor test; r=bjacob
This commit is contained in:
parent
2fca7b118a
commit
66e6b95063
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user