Skip to content

[FIX] fixes OpenGL glitch - #3233

Merged
timosachsenberg merged 2 commits into
OpenMS:feature/qt5from
hroest:fix/toppview_3d
Feb 9, 2018
Merged

timosachsenberg merged 2 commits into
OpenMS:feature/qt5from
hroest:fix/toppview_3d

Conversation

@hroest

@hroest hroest commented Feb 8, 2018

Copy link
Copy Markdown
Contributor

fixes Linux glitch with OpenGL - no more flicker, no more black screen on Intel

@hroest

hroest commented Feb 8, 2018

Copy link
Copy Markdown
Contributor Author

also works well under NVIDIA graphics card and I dont see any negative impact so far. Please try on other platforms.

@hroest

hroest commented Feb 8, 2018

Copy link
Copy Markdown
Contributor Author

maybe this is due to multiple calls to paintGL in short series, see https://stackoverflow.com/questions/17710514/when-is-qglwidgets-paintgl-called - maybe we are not supposed to call it manually? Also this is my understanding from http://doc.qt.io/qt-5/qopenglwidget.html it does not sound like one should call this function manually

@hroest hroest added the QT5 label Feb 8, 2018
@hroest

hroest commented Feb 8, 2018

Copy link
Copy Markdown
Contributor Author

NOTE: still does not fix #3216 -- but now TOPPView ist at least useable

@timosachsenberg

Copy link
Copy Markdown
Contributor

I think its safe to remove the paintGL here. Will check on mac

@hroest

hroest commented Feb 8, 2018

Copy link
Copy Markdown
Contributor Author

looks like travis passes, from my side this is ready to merge

}
openglwidget()->resizeGL(width(), height());
openglwidget()->paintGL();
// openglwidget()->paintGL();

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the main change here that fixes the Linux issue

@timosachsenberg

Copy link
Copy Markdown
Contributor

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants