PlayN getContext() 在 IE9 中失败

发布于 2024-12-16 02:05:46 字数 52 浏览 2 评论 0原文

这是一个已知问题吗?我的印象是 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

唱一曲作罢 2024-12-23 02:05:46

您能否提供更多有关失败的背景信息? 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.

九八野马 2024-12-23 02:05:46

Google 群组中也有人提出了类似的问题:
此处

看起来它无法获得正确的元素。您可能正在 IE9 的“兼容模式”下运行。
尝试将以下内容添加到您的 中:

(来自 http://msdn.microsoft.com/ en-us/library/cc288325(v=vs.85).aspx)

我没有尝试过这个,但它显然解决了原始线程中的问题。

A similar question was asked in the Google group:
Here

Looks like it's failing to get a proper element. You're probably running in IE9's "compatibility mode".
Try adding the following to your <head>:
<meta http-equiv="X-UA-Compatible" content="IE=9" >
(from http://msdn.microsoft.com/en-us/library/cc288325(v=vs.85).aspx)

I have not tried this but aparetly it fixed the problem in the original thread.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文