summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl_p.h
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2011-03-23 09:54:44 (GMT)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2011-03-23 11:27:11 (GMT)
commit1e6e5fdd02757b9f8b5abf23973cbdc76ae67333 (patch)
treedf87bd8fe7d8aef36024e89218906494c02cfb8c /src/opengl/qgl_p.h
parent8582d3b1ad7d879dcb55124933d0d93edb47b66b (diff)
downloadQt-1e6e5fdd02757b9f8b5abf23973cbdc76ae67333.zip
Qt-1e6e5fdd02757b9f8b5abf23973cbdc76ae67333.tar.gz
Qt-1e6e5fdd02757b9f8b5abf23973cbdc76ae67333.tar.bz2
Reset GL glyph cache when texture limit is reached
This is a port of 72f161739b270b01807f97cd853030440f0fd430 which was reverted in integration to master, since it was incompatible with the refactored glyph cache. When the GL glyph cache reached its texture limit, we have to reset it and start over. Added a new cleanup() function in QGLContextGroupResourceBase which deletes the resource for a given context and removes itself from that context group. Task-number: QTBUG-13784 Reviewed-by: Samuel
Diffstat (limited to 'src/opengl/qgl_p.h')
-rw-r--r--src/opengl/qgl_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opengl/qgl_p.h b/src/opengl/qgl_p.h
index 5a5e5cc..b2261a2 100644
--- a/src/opengl/qgl_p.h
+++ b/src/opengl/qgl_p.h
@@ -687,6 +687,7 @@ public:
virtual ~QGLContextGroupResourceBase();
void insert(const QGLContext *context, void *value);
void *value(const QGLContext *context);
+ void cleanup(const QGLContext *context);
void cleanup(const QGLContext *context, void *value);
virtual void freeResource(void *value) = 0;