使用Laya.init(600, 300, WebGL);
报错如下:
Uncaught SecurityError: Failed to execute 'texSubImage2D' on 'WebGLRenderingContext': The cross-origin image at http://127.0.0.1/laya/studyLayaAir/res/img/monkey.png may not be loaded.
对应的js错误行代码:
(xoffset-1 >=0)&& (gl.texSubImage2D(0x0DE1,0,xoffset-1,yoffset,0x1908,0x1401,bitmap));