mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
webgl: Add getParameter(UNPACK_PREMULTIPLY_ALPHA_WEBGL) support.
This commit is contained in:
parent
8c052d3593
commit
471924af62
2 changed files with 4 additions and 3 deletions
|
@ -1330,6 +1330,10 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
|
||||||
let unpack = self.texture_unpacking_settings.get();
|
let unpack = self.texture_unpacking_settings.get();
|
||||||
return BooleanValue(unpack.contains(TextureUnpacking::FLIP_Y_AXIS));
|
return BooleanValue(unpack.contains(TextureUnpacking::FLIP_Y_AXIS));
|
||||||
}
|
}
|
||||||
|
constants::UNPACK_PREMULTIPLY_ALPHA_WEBGL => {
|
||||||
|
let unpack = self.texture_unpacking_settings.get();
|
||||||
|
return BooleanValue(unpack.contains(TextureUnpacking::PREMULTIPLY_ALPHA));
|
||||||
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -57,9 +57,6 @@
|
||||||
[WebGL test #47: context.getParameter(context.SCISSOR_TEST) should be false (of type boolean). Was null (of type object).]
|
[WebGL test #47: context.getParameter(context.SCISSOR_TEST) should be false (of type boolean). Was null (of type object).]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[WebGL test #86: context.getParameter(context.UNPACK_PREMULTIPLY_ALPHA_WEBGL) should be false (of type boolean). Was null (of type object).]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[WebGL test #88: context.getParameter(context.VIEWPORT) is not an instance of Int32Array]
|
[WebGL test #88: context.getParameter(context.VIEWPORT) is not an instance of Int32Array]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue