mirror of
https://github.com/servo/servo.git
synced 2025-06-13 02:44:29 +00:00
Implement gl.getParameter(gl.ALIASED_POINT_SIZE_RANGE)
This commit is contained in:
parent
2ab34d5969
commit
d6ebbd3e17
13 changed files with 230 additions and 32 deletions
|
@ -45,7 +45,7 @@ domobject_derive = {path = "../domobject_derive"}
|
|||
encoding_rs = "0.7"
|
||||
euclid = "0.17"
|
||||
fnv = "1.0"
|
||||
gleam = "0.4"
|
||||
gleam = "0.4.29"
|
||||
half = "1.0"
|
||||
html5ever = "0.22"
|
||||
hyper = "0.10"
|
||||
|
|
|
@ -1328,6 +1328,14 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
|
|||
[x, y, width, height].to_jsval(cx, rval.handle_mut());
|
||||
return rval.get();
|
||||
}
|
||||
constants::ALIASED_POINT_SIZE_RANGE => {
|
||||
let (sender, receiver) = webgl_channel().unwrap();
|
||||
self.send_command(WebGLCommand::AliasedPointSizeRange(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