New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebGL support in WK2 [QT5.9 / EGLFS QPA] #536
Comments
Same issues #525 probably |
BTW, AFAIK WebGL never worked on EGLFS because there is no standard way to share OpenGL textures between processes without GLX |
http://thebugfreeblog.blogspot.fr/2015/12/hardware-acceleration-on-webkit-1.html He does manage to get it with old WebKit. |
"I'm not talking about WebGL here" It may be a good idea to talk to luc4 on our IRC channel, maybe he can provide further info |
What is your hardware platform? |
RPI2, FreeBSD, QT5.9 backend on EGLFS, everything compiled for cortex-a7. Everything working perfectly except WebGL on WK2 :-) |
I've seen this: https://bugreports.qt.io/browse/QTBUG-33413 where one claimed he had patches for WebGL functionality to WebKit2. I also read other Carl's blog posts where a commenter mentioned Qt::AA_ShareOpenGLContexts flag had to be used on QGuiApplication. |
You mean on WK2 right? Because I can show you a video of WebGL working on EGLFS with your webkit fork and WK1 :-) |
Right. In WK1 page and GUI is in one process, so no sharing needed. AFAIU, Qt::AA_ShareOpenGLContexts is used to share context between different top-level windows in the same processes, but cannot help with anything for cross-process sharing. To get cross-process sharing working there are 3 ways:
|
Thanks. Is it worth trying USE_COORDINATED_GRAPHICS_THREADED (instead of the default USE_COORDINATED_GRAPHICS_MULTIPROCESS one ?) |
It won't work with our current implementation of WK2. It maybe worth switching to it instead of the current model (esp. given that it was purged from trunk when EFL port left it recently), but it's a research topic. |
Hello Konstantin,
First, excellent work for this project.
While WebGL works in WK1 (see example at the end), it doesn't work on WK2 (see example below). Here is my test URL:
http://www.equasys.de/solarsystem.html
My QML file:
My C++ file:
However this works (WK1 right?):
The text was updated successfully, but these errors were encountered: