cc.loader.load(figureurl, function (err, tex) {});
回调err直接提示load xxx failed!
figureurl我在网页上能够看到图片
Error: DOMException: Failed to execute ‘texImage2D’ on ‘WebGLRenderingContext’: The cross-origin image at http://xxx
可能是跨域的问题。
我换成canvas模式就能下载,但我们游戏是用的webGL
求大神解答
调用你们服务端的接口,让服务器去转存你要的图片,然后读取服务端返回的图片