qt5base-lts/tests/auto/other
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
..
atwrapper Update license headers and add new license files 2014-09-24 12:26:19 +02:00
baselineexample Update license headers and add new license files 2014-09-24 12:26:19 +02:00
compiler Gcc 4.5.* build fix. 2014-10-10 13:20:30 +02:00
gestures Update license headers and add new license files 2014-09-24 12:26:19 +02:00
headersclean headersclean: process private modules correctly 2013-07-03 15:31:13 +02:00
lancelot Ensure that GL::updateBrushTexture() activates and binds properly 2014-12-13 01:49:24 +01:00
languagechange Update license headers and add new license files 2014-09-24 12:26:19 +02:00
macgui Update license headers and add new license files 2014-09-24 12:26:19 +02:00
macnativeevents Update license headers and add new license files 2014-09-24 12:26:19 +02:00
macplist Update license headers and add new license files 2014-09-24 12:26:19 +02:00
modeltest Update license headers and add new license files 2014-09-24 12:26:19 +02:00
networkselftest Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qaccessibility Fix tst_QAccessibility::abstractScrollAreaTest for OS X 10.9 2014-10-28 12:56:39 +01:00
qaccessibilitylinux Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qaccessibilitymac Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qcomplextext Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qfocusevent Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qnetworkaccessmanager_and_qprogressdialog Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qobjectperformance Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qobjectrace Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qprocess_and_guieventloop Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qsharedpointer_and_qwidget Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qtokenautomaton Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qvariant_common Update license headers and add new license files 2014-09-24 12:26:19 +02:00
windowsmobile Update license headers and add new license files 2014-09-24 12:26:19 +02:00
other.pro Remove vestiges of d3dcompiler_qt 2014-09-02 21:55:41 +02:00