gameclosure/webgl-2d — Issue #26: Problem with drawImage and multiple canvases
Author: humphd
Created: 2012-02-17 15:21:52+00:00
State: open

I was trying this with the IE Fish Tank demo (see http://www.microsoft.com/taiwan/promo/ie9/bow/fish_demo/FishTank_demo.html) and I get an error:

[10:12:27.619] WebGL: bindBuffer: object from different WebGL context (or older generation of this one) passed as argument @ http://localhost:9914/webgl-2d.js:1292

in gl.drawImage...

gl.bindBuffer(gl.ARRAY_BUFFER, rectVertexPositionBuffer);