Emit InvalidEnum for invalid targets passed to gl.renderbufferStorage

This commit is contained in:
Anthony Ramine 2018-04-05 18:01:09 +02:00
parent 183cc4c035
commit ac85d1255d

View file

@ -3518,7 +3518,7 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
// //
// "target must be RENDERBUFFER." // "target must be RENDERBUFFER."
if target != constants::RENDERBUFFER { if target != constants::RENDERBUFFER {
return self.webgl_error(InvalidOperation) return self.webgl_error(InvalidEnum);
} }
// From the GLES 2.0.25 spec: // From the GLES 2.0.25 spec: