Properly check for invalid targets in gl.BindFramebuffer

It should always emit InvalidEnum, not InvalidOperation.
This commit is contained in:
Anthony Ramine 2018-04-05 17:39:53 +02:00
parent 044f19d914
commit 183cc4c035
2 changed files with 2 additions and 7 deletions

View file

@ -95,6 +95,6 @@
[WebGL test #55: getError expected: NO_ERROR. Was INVALID_ENUM : bind read framebuffer to default (null) framebuffer.]
expected: FAIL
[WebGL test #56: getError expected: NO_ERROR. Was INVALID_OPERATION : bind draw framebuffer to default (null) framebuffer.]
[WebGL test #56: getError expected: NO_ERROR. Was INVALID_ENUM : bind draw framebuffer to default (null) framebuffer.]
expected: FAIL