qt5base-lts/tests/auto/other/lancelot/scripts
Tor Arne Vestbø dfccd78aa6 Ensure that GL::updateBrushTexture() activates and binds properly
Calling QOpenGL2GradientCache::getBuffer() will generate the texture the
first time, calling glBindTexture in the process. We did this without
first ensuring that the right texture unit was active, resulting in the
generated gradient texture binding onto the glyph cache mask unit.

We now provide a specialization of bindTexture for a QGradient, which
ensures that the right unit is active before calling getBuffer().

Unfortunately we have no way of knowing if the result of getBuffer()
was a texture that was already bound, or if we need to bind the result,
which means we have to do an unconditional bindTexture of the resulting
texture ID. This means double-bind for the initial texture generation,
but this was already an issue in the original code.

Task-number: QTBUG-43039
Task-number: QTBUG-41244
Change-Id: I20c9b795c8c14f8d58be2b60a284c5a060705ec0
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
2014-12-13 01:49:24 +01:00
..
aliasing.qps
arcs2.qps
arcs.qps
background_brush.qps
background.qps Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
beziers.qps
bitmaps.qps Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
borderimage.qps
brush_pens.qps
brushes.qps
clippaths.qps Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
clipping_state.qps
clipping.qps
cliprects.qps Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
conical_gradients_perspectives.qps
conical_gradients.qps Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
dashes.qps Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
degeneratebeziers.qps
deviceclipping.qps Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
drawpoints.qps
ellipses.qps
filltest.qps
gradients.qps
hinting.qps
image_formats.qps
images2.qps
images.qps
join_cap_styles_duplicate_control_points.qps
join_cap_styles.qps
linear_gradients_perspectives.qps
linear_gradients.qps
linear_resolving_gradients.qps
lineconsistency.qps
linedashes2_aa.qps
linedashes2.qps
linedashes.qps
lines2.qps
lines3.qps
lines.qps
pathfill.qps
paths_aa.qps
paths.qps
pens_aa.qps
pens_cosmetic.qps
pens.qps
perspectives2.qps
perspectives.qps
pixmap_rotation.qps
pixmap_scaling.qps Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
pixmap_subpixel.qps Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
pixmaps.qps Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
porter_duff2.qps
porter_duff.qps
primitives.qps
radial_gradients_perspectives.qps
radial_gradients.qps
rasterops.qps Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
sizes.qps Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
statictext.qps Extend lance-tests for text/statictext to check flipped/negative scale 2013-01-24 13:45:01 +01:00
text_perspectives.qps
text.qps Ensure that GL::updateBrushTexture() activates and binds properly 2014-12-13 01:49:24 +01:00
tiled_pixmap.qps Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00