pixi.js app.renderer.plugins.extract.image 导出报错 导致Graphics是黑的
GL ERROR :GL_INVALID_OPERATION : glDrawElements: Source and destination textures of the draw are the same.
原因不是很明白,好像是自己draw自己
最后解决方案是不用app.renderer导出,重新new一个renderer用来导出,导出完再destroy。
pixi.js app.renderer.plugins.extract.image 导出报错 导致Graphics是黑的
GL ERROR :GL_INVALID_OPERATION : glDrawElements: Source and destination textures of the draw are the same.
原因不是很明白,好像是自己draw自己
最后解决方案是不用app.renderer导出,重新new一个renderer用来导出,导出完再destroy。