I am trying to draw the same WebGL scene using two canvases side-by-side. Is it possible? So far I haven't been lucky.
The idea goes as follows:
- I load my geometry
- I set up two
gl
context, one per canvas - I call
drawElements
on the first context passing my geometry - I call
drawElements
on the second context passing my geometry
Results:
Only the first invocation is successful. The second context executes gl.clear
correctly but no geometry is displayed.
What am I missing? is this a spec constrain? or a limitation in the Firefox and Safari's implementations?
Thanks,