mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +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();
|
||||
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));
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue