Fix InvalidateSubFramebuffer error handling

The WebGL2 InvalidateSubFramebuffer function should generate
INVALID_VALUE when width or height is negative.
This commit is contained in:
Mátyás Mustoha 2020-04-22 12:25:36 +02:00
parent e69adfdd7a
commit a90f034976
2 changed files with 1 additions and 4 deletions

View file

@ -3966,7 +3966,7 @@ impl WebGL2RenderingContextMethods for WebGL2RenderingContext {
}
if width < 0 || height < 0 {
return;
return self.base.webgl_error(InvalidValue);
}
self.base

View file

@ -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