skyfish-qc / pixi-miniprogram

一个可运行于微信小程序的PIXI引擎,通过模拟window环境,有些功能小程序无法模拟,就直接修改了PIXI引擎代码,最终使得PIXI引擎正常运行在小程序上
MIT License
126 stars 34 forks source link

在微信开发者工具不支持getcontext(‘webgl’) #1

Closed zhuhang4 closed 4 years ago

zhuhang4 commented 4 years ago

更新到最新版本微信开发者工具(1.03.2005140)

按案例接入,报错 Canvas: current node only supports 2d context

将‘webgl’修改为‘2d’ 报错Cannot set property 'fillRect' of undefined

skyfish-qc commented 4 years ago

我更新到最新版的微信开发者工具可以运行的,你的代码发一下看看?

zhuhang4 commented 4 years ago

我更新到最新版的微信开发者工具可以运行的,你的代码发一下看看?

已经解决了,是我的问题,wxml里canvas的type选的2d而非webgl。谢谢您的回复!