I am under a situation that i have two canvas, and i want to display the same object in both canvas (in fact i have to display different objects in each canvas, but i want t
var canvas = document.getElementById("canvas"), canvas2 = document.getElementById("canvas2"); gl = canvas.getContext("experimental-webgl"); gl2 = canvas.getContext("experimental-webgl");
I think you missed the reference to the second canvas element