mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Fix InvalidateSubFramebuffer error handling
The WebGL2 InvalidateSubFramebuffer function should generate INVALID_VALUE when width or height is negative.
This commit is contained in:
parent
e69adfdd7a
commit
a90f034976
2 changed files with 1 additions and 4 deletions
|
@ -3966,7 +3966,7 @@ impl WebGL2RenderingContextMethods for WebGL2RenderingContext {
|
|||
}
|
||||
|
||||
if width < 0 || height < 0 {
|
||||
return;
|
||||
return self.base.webgl_error(InvalidValue);
|
||||
}
|
||||
|
||||
self.base
|
||||
|
|
|
@ -6,6 +6,3 @@
|
|||
[WebGL test #17: successfullyParsed should be true (of type boolean). Was undefined (of type undefined).]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #11: getError expected: INVALID_VALUE. Was NO_ERROR : calling invalidateSubFramebuffer should generate INVALID_VALUE if width < 0 or height < 0.]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue