webgl: Remove objects from binding points on object deletion.

We keep bindings that shadow what's mapped in the GL state currently,
and so we need to remove the objects from our binding points when they
get implicitly removed from the GL binding points during object deletion.
This commit is contained in:
Eric Anholt 2016-08-14 18:35:32 -07:00
parent 6ec2c41df8
commit db9fe23903
2 changed files with 24 additions and 8 deletions

View file

@ -68,9 +68,6 @@
[WebGL test #48: getError expected: NO_ERROR. Was INVALID_ENUM : after evaluating: gl.bindTexture(gl.TEXTURE_2D, t)]
expected: FAIL
[WebGL test #52: getError expected: INVALID_OPERATION. Was NO_ERROR : after evaluating: gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE)]
expected: FAIL
[WebGL test #56: gl.getParameter(gl.TEXTURE_BINDING_2D) should be [object WebGLTexture\]. Was null.]
expected: FAIL