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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue