mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Emit InvalidEnum for invalid targets passed to gl.renderbufferStorage
This commit is contained in:
parent
183cc4c035
commit
ac85d1255d
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue