mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
webgl: Drop a silly check for 0 in GetTexParameter.
0 is not among the valid values for a wrap mode or filter, so it won't ever be returned unless the driver is broken, and even if it was a valid value we would want to pass it through.
This commit is contained in:
parent
719e4e37e9
commit
5f2d512c12
1 changed files with 1 additions and 7 deletions
|
@ -1412,13 +1412,7 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
|
|||
let (sender, receiver) = webgl_channel().unwrap();
|
||||
self.send_command(WebGLCommand::GetTexParameter(target, pname, sender));
|
||||
|
||||
match receiver.recv().unwrap() {
|
||||
value if value != 0 => Int32Value(value),
|
||||
_ => {
|
||||
self.webgl_error(InvalidEnum);
|
||||
NullValue()
|
||||
}
|
||||
}
|
||||
Int32Value(receiver.recv().unwrap())
|
||||
}
|
||||
|
||||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue