diff options
author | Tor Arne Vestbø <tor.arne.vestbo@digia.com> | 2014-12-08 15:31:37 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com> | 2014-12-12 22:37:00 +0100 |
commit | 37490d465b203ac109f422b482eda9704f4e8593 (patch) | |
tree | 6c6b150e68f184e87631e983b4be3cf016ff3f1b /src/gui/text | |
parent | adfeb9e44479c16945409bb9d45d5720524a8c98 (diff) |
GL: Make updateTexture invalidate texture on change of texture unit
Switching texture units means the value of lastTextureUsed could be
invalid, meaning we need to unconditionally re-bind and update parameters.
A future optimization would be to keep a per-texture-unit cache, so
that we wouldn't have to re-bind and set parameters when switching
units back and forth, but this complicates the current code somewhat,
so it's left for another patch.
Change-Id: Icb2a5d03457a907f3c25bbb437feeb7c5f155716
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
Diffstat (limited to 'src/gui/text')
0 files changed, 0 insertions, 0 deletions