[Qtwebengine] QtWebEngine + WebGL + ANGLE + Intel + Windows?

Matt thewantonmate at yahoo.com
Mon Aug 21 10:29:57 CEST 2017


Hello, this is regarding the following forum post:
Qt5: can WebGL work with ANGLE on Windows via QtWebEngine?

where it was suggested that we send a message to this mailing list for more authoritative answers.

tl;dr: We're not able to get WebGL pages viewed with QtWebEngine (5.9.1 or 5.10.0) working on a Windows 10 Surface Pro 3, which uses Intel HD 5000 graphics, and would like to know whether it's possible and how to do so.
We can get WebGL partially working by (1) using desktop OpenGL via Qt::AA_UseDesktopOpenGL, (2) applying a patch to web_engine_context.cpp that passes --disable-es3-gl-context, and (3) passing --ignore-gpu-blacklist on the command line. However, something is still wonky with texturing and/or lighting and some WebGL samples do not look correct - geometry is all black. If we pass similar flags to Chrome browser (including --use-gl=deskop, --ignore-gpu-blacklist, and --disable-es3-gl-context), we get the same behavior, which suggests that perhaps the underlying Chromium libraries do not work properly with this hardware.
However, by default, Chrome browser uses ANGLE and everything appears perfectly, so we thought that we could achieve similar performance in Qt. But when we try to use ANGLE in QtWebEngine via Qt::AA_UseOpenGLES, we cannot get WebGL working at all on any computer we've tried (two are NVIDIA/Optimus and one is Intel only). The chrome://gpu page indicates software-only capabilities, since apparently QtWebEngine is passing the --disable-gpu switch when GLES is enabled. When we try to view pages with WebGL content, we get the standard 'WebGL is disabled' message.
Is this the intended behavior? Can ANGLE not work with QtWebEngine to display WebGL content as it does in Chrome browser? Is there _any_ way to get WebGL working properly on our hardware?
We'd be happy to provide any additional detail or information that we've omitted here. Thanks in advance for any help!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qtwebengine/attachments/20170821/384b0f25/attachment.html>


More information about the QtWebEngine mailing list