WebGL IE in webbrowser control

霸气de小男生 提交于 2019-12-25 05:35:47

问题


I am testing the use of WebGL within an IE webbrowser control in a .NET Winforms application. I have installed IE11 preview and checked that that the webbrowser control reports version 11. If I run this page [http://www.html5canvastutorials.com/three/html5-canvas-webgl-rotating-cube/] page in IE11 I see a rotating cube. In the winforms app, it complains of a script error.

I have tried this with several WebGL sites with similar results. Any ideas?


回答1:


By default, the WinForms WebBrowser Control will render sites in IE7 Standards mode, which does not support WebGL. Make sure that your application has the appropriate registry keys set to make the default mode IE11 Edge Mode.

See the IE Blog post at http://blogs.msdn.com/b/ie/archive/2009/03/10/more-ie8-extensibility-improvements.aspx which describes the FEATURE_BROWSER_EMULATION feature control key, but keep in mind that this is in the context of IE8, so it doesn’t include examples with IE11 Edge Mode. http://msdn.microsoft.com/en-us/library/ie/ee330730(v=vs.85).aspx#browser_emulation documents the latest values, including the one for IE11 Edge mode.

Disclosure: I am on the team that worked on Microsoft's implementation of WebGL



来源:https://stackoverflow.com/questions/19424283/webgl-ie-in-webbrowser-control

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!