Skip to content

Commit

Permalink
Emit InvalidEnum for invalid targets passed to gl.renderbufferStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
nox committed Apr 6, 2018
1 parent 183cc4c commit ac85d12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/script/dom/webglrenderingcontext.rs
Expand Up @@ -3518,7 +3518,7 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
//
// "target must be RENDERBUFFER."
if target != constants::RENDERBUFFER {
return self.webgl_error(InvalidOperation)
return self.webgl_error(InvalidEnum);
}

// From the GLES 2.0.25 spec:
Expand Down

0 comments on commit ac85d12

Please sign in to comment.