webgl: Add getParameter(UNPACK_FlIP_Y_WEBGL) support.

This commit is contained in:
Eric Anholt 2018-05-05 18:27:57 -07:00
parent 5f2d512c12
commit 8c052d3593
2 changed files with 4 additions and 3 deletions

View file

@ -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));
}
_ => {}
}

View file

@ -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