CANVAS- to TEXTURE - THREE.WebGLState: DOMException: "The operation is insecure." Why?
Try to use existed canvas as texture for object but have error about I think ThreeJS lost context or something other ... :
Here is example:
jsfiddle code here:
1:
Green btn work is ok. Is the simple canvas modification, but just press Red btn and look err at console and after that red btn, green not work anymore... with same err.
ERRs: FFox "THREE.WebGLState: DOMException: "The operation is insecure"
Chrome "THREE.WebGLState: DOMException: Failed to execute 'texImage2D' on 'WebGLRenderingContext': Tainted canvases may not be loaded."