play-co / webgl-2d

Canvas2D API in WebGL
http://weare.buildingsky.net
MIT License
519 stars 116 forks source link

Need preserveDrawingBuffer: true #20

Open greggman opened 13 years ago

greggman commented 13 years ago

WebGL by default does not preserve the contents of the canvas across draw calls like canvas 2d does.

To fix this you need to pass in {preserveDrawingBuffer: true} to getContext

i386 commented 9 years ago

This would be super helpful :)