PlayN getContext() 在 IE9 中失败
这是一个已知问题吗?我的印象是 IE9 兼容 HTML 5 并且支持 canvas 标签。
Is this a known issue? I was under the impression that IE9 was HTML 5 compatible and supported the canvas tag.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您能否提供更多有关失败的背景信息? playn-html 初始化代码首先尝试创建一个 webgl 画布上下文(IE9不支持),但是当失败时,它将回退到常规的 2d 上下文(是 IE9 支持)。
目前我没有方便检查的 Windows 盒子,但我确实知道《愤怒的小鸟》可以在 IE9 上运行,因此除非同时有什么东西侵入代码,否则它应该仍然可以运行。但是,您可以提供的有关您所看到的故障的任何准确信息都会有所帮助。
Could you provide a bit more context on the failure? The playn-html initialization code first attempts to create a webgl canvas context (which is not supported on IE9), but when this fails, it will fall back to a regular 2d context (which is supported on IE9).
I don't have a Windows box handy to check at the moment, but I do know that Angry Birds works on IE9, so unless something has crept into the code in the meantime, it should still work. But any precise information you could provide on the failure you're seeing would be helpful.
Google 群组中也有人提出了类似的问题:
此处
我没有尝试过这个,但它显然解决了原始线程中的问题。
A similar question was asked in the Google group:
Here
I have not tried this but aparetly it fixed the problem in the original thread.