qt5base-lts/tests/auto/other/lancelot
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
..
images Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
scripts Ensure that GL::updateBrushTexture() activates and binds properly 2014-12-13 01:49:24 +01:00
.gitignore Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
images.qrc Moved integrationtests/* into other/ 2011-11-30 09:30:22 +01:00
lancelot.pro Don't build lance as application bundle on Mac OS 2013-01-22 14:56:47 +01:00
paintcommands.cpp Update license headers and add new license files 2014-09-24 12:26:19 +02:00
paintcommands.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
tst_lancelot.cpp Update license headers and add new license files 2014-09-24 12:26:19 +02:00