-
Notifications
You must be signed in to change notification settings - Fork 317
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
[SofaKernel/SofaGuiQt] Qt viewer with intel drivers #1690
[SofaKernel/SofaGuiQt] Qt viewer with intel drivers #1690
Conversation
Adds the DeprecatedFunctions option to the Qt widget to let recent drivers support the old extensions used by SOFA Remove the forced Mesa OpenGL version 3.0 and warn the user instead of triggering an error.
[ci-build][with-all-tests] |
👍 |
Thanks for linking this issue, I wasn't aware. I wouldn't be surprise that the crash that was initially happening was for the same reason as the one for which I made this PR (the 0 GL extension -> std::string(nullptr) -> crash). With this PR, such a crash won't happen anymore. In addition, the extensions will now be found due to the magic call to |
If anybody still does have a problem with Intel/OpenGL/Mesa, please open an issue. |
* [SofaHelper] Fix seg fault when no OpenGL extensions are found * [QtViewer] Fix unsupported intel drivers Adds the DeprecatedFunctions option to the Qt widget to let recent drivers support the old extensions used by SOFA Remove the forced Mesa OpenGL version 3.0 and warn the user instead of triggering an error.
We got this error many times in the past, and I never had the chance to dig into the issue. There was actually two issues:
This PR fixes both of these issues. It first make sure that the pointer returned by Glew isn't null before converting it to a std::string. It also asks Qt to enable deprecated functions, which are used by SOFA.
In addition, I've removed the part of the Qt viewer that was forcing the environment variable
MESA_GL_VERSION_OVERRIDE
on Linux. I've also remove the error when this environment variable wasn't set with Intel driver (which was never the case because we were forcing it...) and added a warning instead (Qt viewer works fine on Intel drivers, maybe this was an old bug?).Will most probably fix #1567
By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).
Reviewers will merge this pull-request only if