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 Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
arcs2.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
arcs.qps Adjust autotest files for raster engine to new default pen 2012-10-26 11:53:12 +02:00
background_brush.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
background.qps Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
beziers.qps Adjust autotest files for raster engine to new default pen 2012-10-26 11:53:12 +02:00
bitmaps.qps Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
borderimage.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
brush_pens.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
brushes.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
clippaths.qps Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
clipping_state.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
clipping.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
cliprects.qps Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
conical_gradients_perspectives.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
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 Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
deviceclipping.qps Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
drawpoints.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
ellipses.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
filltest.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
gradients.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
hinting.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
image_formats.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
images2.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
images.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
join_cap_styles_duplicate_control_points.qps Adjust autotest files for raster engine to new default pen 2012-10-26 11:53:12 +02:00
join_cap_styles.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
linear_gradients_perspectives.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
linear_gradients.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
linear_resolving_gradients.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
lineconsistency.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
linedashes2_aa.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
linedashes2.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
linedashes.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
lines2.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
lines3.qps Adjust autotest files for raster engine to new default pen 2012-10-26 11:53:12 +02:00
lines.qps Adjust autotest files for raster engine to new default pen 2012-10-26 11:53:12 +02:00
pathfill.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
paths_aa.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
paths.qps Adjust autotest files for raster engine to new default pen 2012-10-26 11:53:12 +02:00
pens_aa.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
pens_cosmetic.qps Adjust autotest files for raster engine to new default pen 2012-10-26 11:53:12 +02:00
pens.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
perspectives2.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
perspectives.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
pixmap_rotation.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
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 Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
porter_duff.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
primitives.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
radial_gradients_perspectives.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
radial_gradients.qps Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
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 Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
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