Skip to content

QOpenGLWidget GLSL and WSpinny fixes.#1

Open
rryan wants to merge 5647 commits into
sgielen:qopenglwidgetfrom
rryan:qopenglwidget
Open

QOpenGLWidget GLSL and WSpinny fixes.#1
rryan wants to merge 5647 commits into
sgielen:qopenglwidgetfrom
rryan:qopenglwidget

Conversation

@rryan
Copy link
Copy Markdown

@rryan rryan commented Dec 29, 2018

Builds on mixxxdj#1863.

@Be-ing
Copy link
Copy Markdown

Be-ing commented Dec 29, 2018

GLSL is working again on Linux with Intel graphics, but spinnies are distorted (regardless of scale factor):
screenshot from 2018-12-29 00-12-32

@rryan
Copy link
Copy Markdown
Author

rryan commented Dec 29, 2018

Huh, that's weird. Especially because WSpinny is painted with QPainter, not OpenGL functions.

@daschuer
Copy link
Copy Markdown

Did you pick the right target branch?
This PR also contains master changes.
I think merging master should be done directly in the original PR.

@rryan
Copy link
Copy Markdown
Author

rryan commented Dec 30, 2018

Did you pick the right target branch?
This PR also contains master changes.
I think merging master should be done directly in the original PR.

Master has changes that the base branch doesn't have that my branch builds on. I didn't want to wait for @sgielen to merge (and it had some conflicts that I had more context on how to resolve).

@rryan
Copy link
Copy Markdown
Author

rryan commented Dec 30, 2018

Did this ever work?
If not, can we meet this directly to master?

It did -- but with QOpenGLWidget it doesn't because isValid always returns false until the widget isVisible, so I don't think it makes sense in master until @sgielen's PR merges.

@rryan
Copy link
Copy Markdown
Author

rryan commented Dec 30, 2018

Alternatively I'm happy to take over this work and open a separate PR against mixxxdj/mixxx.

@daschuer
Copy link
Copy Markdown

Did this ever work?
If not, can we meet this directly to master?

It did -- but with QOpenGLWidget it doesn't because isValid always returns false until the widget isVisible, so I don't think it makes sense in master until @sgielen's PR merges.

Do we have an alternative fallback solution?

@rryan rryan force-pushed the qopenglwidget branch 3 times, most recently from 7d0990b to a59416f Compare January 3, 2019 04:01
sgielen pushed a commit that referenced this pull request Mar 18, 2019
uklotzde and others added 30 commits April 11, 2020 19:29
TrackDAO: Add missing const qualifiers
Pin Xcode version to 9.4.1 on Travis CI
…-delete

widget/wcolorpicker: Set button pointer to nullptr after delete
Fix build with EXTRA_METADATA enabled / Update dirty flag
resolve conflicts, Fix OpenGL status
This has no effect on macOS because the widget's QOpenGLContext is not
created until the widget is shown or resized, but its removal may be
causing segfaults on Linux.
With QOpenGLWidget, no work should be done in constructors since our
QOpenGLContext is not valid until the widget is shown.

QAbstractOpenGLFunctions::initializeOpenGLFunctions is cheap (only
does work if it has never been called), so we can call it on every
draw() without a performance penalty.
…the QMainWindow.

This removes the need to use QGuiApplication::focusWindow() or to walk
the list of top level windows to get the QMainWindow. It also hides
some implementation details of WaveformWidgetFactory from the
rest of Mixxx.
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.