mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Implement gl.getParameter(gl.ALIASED_LINE_WIDTH_RANGE)
This commit is contained in:
parent
be4ac6c4cd
commit
36c0e387dd
10 changed files with 31 additions and 24 deletions
|
@ -1326,6 +1326,14 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
|
|||
[width, height].to_jsval(cx, rval.handle_mut());
|
||||
return rval.get();
|
||||
}
|
||||
constants::ALIASED_LINE_WIDTH_RANGE => {
|
||||
let (sender, receiver) = webgl_channel().unwrap();
|
||||
self.send_command(WebGLCommand::AliasedLineWidthRange(sender));
|
||||
let (width, height) = receiver.recv().unwrap();
|
||||
rooted!(in(cx) let mut rval = UndefinedValue());
|
||||
[width, height].to_jsval(cx, rval.handle_mut());
|
||||
return rval.get();
|
||||
}
|
||||
_ => {
|
||||
if !self.extension_manager.is_get_parameter_name_enabled(parameter) {
|
||||
self.webgl_error(WebGLError::InvalidEnum);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue