Skip to content

Commit

Permalink
webgl: Add getParameter(UNPACK_FlIP_Y_WEBGL) support.
Browse files Browse the repository at this point in the history
  • Loading branch information
anholt committed May 7, 2018
1 parent 5f2d512 commit 8c052d3
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 @@ -1326,6 +1326,10 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
"WebGL GLSL ES 1.0".to_jsval(cx, rval.handle_mut());
return rval.get();
}
constants::UNPACK_FLIP_Y_WEBGL => {
let unpack = self.texture_unpacking_settings.get();
return BooleanValue(unpack.contains(TextureUnpacking::FLIP_Y_AXIS));
}
_ => {}
}

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 #85: context.getParameter(context.UNPACK_FLIP_Y_WEBGL) 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

Expand Down

0 comments on commit 8c052d3

Please sign in to comment.