summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl_p.h
diff options
context:
space:
mode:
authorTrond Kjernåsen <trond@trolltech.com>2009-07-01 11:55:16 (GMT)
committerTrond Kjernåsen <trond@trolltech.com>2009-07-01 11:56:49 (GMT)
commit7bf505a54379388b292df528114d6e2dd8d9d4d4 (patch)
tree92c616404dc63e8a0e846044447275b7d3cba63c /src/opengl/qgl_p.h
parentd43a10d6d9a5f13fc8deac052926720927e09e83 (diff)
downloadQt-7bf505a54379388b292df528114d6e2dd8d9d4d4.zip
Qt-7bf505a54379388b292df528114d6e2dd8d9d4d4.tar.gz
Qt-7bf505a54379388b292df528114d6e2dd8d9d4d4.tar.bz2
Fixed cleanup of glyph cache textures in the GL 2 engine.
This could potentially crash when a context was destroyed before the actual font engine holding the QGLTextureGlyphCache was destroyed. Reviewed-by: Samuel
Diffstat (limited to 'src/opengl/qgl_p.h')
-rw-r--r--src/opengl/qgl_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/opengl/qgl_p.h b/src/opengl/qgl_p.h
index 85e9bd7..ac19d64 100644
--- a/src/opengl/qgl_p.h
+++ b/src/opengl/qgl_p.h
@@ -421,6 +421,10 @@ public:
removeShare(oldContext);
}
+ QList<const QGLContext *> shares(const QGLContext *context) {
+ return reg.values(context);
+ }
+
private:
QGLSharingHash reg;
};