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