summaryrefslogtreecommitdiffstats
path: root/tests/auto/qmutex
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2011-02-01 16:57:10 (GMT)
committerSamuel Rødal <samuel.rodal@nokia.com>2011-02-02 09:48:46 (GMT)
commit4d38013cfc3058e36de1b6a6c20653ef2688a92b (patch)
treeefe61cf84531c1e1170f3f27584090c13ba37212 /tests/auto/qmutex
parent5ad8cd48a1ed3be183c0af8698491b039f0054e4 (diff)
downloadQt-4d38013cfc3058e36de1b6a6c20653ef2688a92b.zip
Qt-4d38013cfc3058e36de1b6a6c20653ef2688a92b.tar.gz
Qt-4d38013cfc3058e36de1b6a6c20653ef2688a92b.tar.bz2
Fixed missing text when using static text items in GL 2 engine.
When the context is destroyed and recreated, we end up with a new glyph cache, but we only recreate the vertex arrays for the very first static text item. We need to keep track of the glyph cache in each text item, so that we can recreate the vertex arrays and re-populate the cache accordingly. As the pointer might be the same after the glyph cache is recreated, we need to use serial numbers instead. We also need to re-create the cache when the context pointer has been invalidated, so that the static text items also get invalidated, and the texture glyph cache gets repopulated. Reviewed-by: Eskil Abrahamsen Blomfeldt
Diffstat (limited to 'tests/auto/qmutex')
0 files changed, 0 insertions, 0 deletions