Skip to content
Commit e38e5a05 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau Committed by Albert Astals Cid
Browse files

Fix transparent rendering of the cube

QOpenGLWidget::paintGL() docs hints that only certain things are reset,
which does not include the blending.

So any blending functions set are just by chance, and some recent changes
in Qt code might now leave other state behind.
E.g. the last thing Kubrick's code does is painting the labels, and
QPainter font rendering sets the blending src/dest pair to
GL_CONSTANT_COLOR, GL_ONE_MINUS_SRC_COLOR. Which then on the next
invocation of paintGL() is still set at least with Qt 6.7.0.
Resulting in undesired transparent display of the cube (and background).

BUG: 486085
FIXED-IN: 1.1.24050
parent 36b71c4d
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment