Skip to content

Commit

Permalink
webgl: Add getParameter(UNPACK_PREMULTIPLY_ALPHA_WEBGL) support.
Browse files Browse the repository at this point in the history
  • Loading branch information
anholt committed May 7, 2018
1 parent 8c052d3 commit 471924a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions components/script/dom/webglrenderingcontext.rs
Expand Up @@ -1330,6 +1330,10 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
let unpack = self.texture_unpacking_settings.get();
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));
}
_ => {}
}

Expand Down
Expand Up @@ -57,9 +57,6 @@
[WebGL test #47: context.getParameter(context.SCISSOR_TEST) should be false (of type boolean). Was null (of type object).]
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]
expected: FAIL

Expand Down

0 comments on commit 471924a

Please sign in to comment.