qt5base-lts/tests/auto
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
..
android Update license headers and add new license files 2014-09-24 12:26:19 +02:00
bic/data test: Add 5.1.0 bic data for linux-gcc-ia32 2013-07-08 21:47:36 +02:00
cmake Update license headers and add new license files 2014-09-24 12:26:19 +02:00
compilerwarnings/data Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
concurrent Update license headers and add new license files 2014-09-24 12:26:19 +02:00
corelib tst_qsortfilterproxymodel: remove unused member var 2014-11-28 09:09:02 +01:00
dbus Make QtDBus compile without libdbus-1 headers, if dlopening 2014-12-01 20:03:33 +01:00
gui Attempt to make the positioning test of QWindow more reliable 2014-12-09 16:52:37 +01:00
guiapplauncher
installed_cmake Add a unit test for testing Qt in its install location. 2013-07-02 23:08:54 +02:00
network Merge remote-tracking branch 'origin/5.4.0' into 5.4 2014-11-27 18:12:10 +01:00
opengl Fixed QtGui's GL paint engine getting out of sync when using QtOpenGL 2014-11-11 19:24:34 +01:00
other Ensure that GL::updateBrushTexture() activates and binds properly 2014-12-13 01:49:24 +01:00
printsupport Make it possible to disable font embedding 2014-11-15 08:49:15 +01:00
shared Android: Keyboard doesn't hide from done button 2014-10-25 07:19:35 +02:00
sql Adjust DBMSType to DbmsType to follow conventions 2014-11-26 10:47:32 +01:00
testlib Update license headers and add new license files 2014-09-24 12:26:19 +02:00
tools Define Q_CC_CLANG to be the version of upstream Clang that's in use 2014-11-05 07:30:32 +01:00
widgets Stabilize tst_QWindowContainer. 2014-12-04 20:18:38 +01:00
xml Update license headers and add new license files 2014-09-24 12:26:19 +02:00
auto.pro iOS: Enable building of basic tests 2014-01-22 12:35:17 +01:00
network-settings.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qtest-config.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
test.pl Update license headers and add new license files 2014-09-24 12:26:19 +02:00