summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl.h
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-06-02 13:25:07 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2009-06-03 07:10:42 (GMT)
commitfa95af38594b09718b9eb9048b75b9628dc9a0da (patch)
tree81e0817af46beaaf9684127f32a3462faaa79c89 /src/opengl/qgl.h
parentd37de8e085bdc3ee5d0185b403879bac485ef834 (diff)
downloadQt-fa95af38594b09718b9eb9048b75b9628dc9a0da.zip
Qt-fa95af38594b09718b9eb9048b75b9628dc9a0da.tar.gz
Qt-fa95af38594b09718b9eb9048b75b9628dc9a0da.tar.bz2
Implemented QGLTextureGlyphCache to avoid wasting glyph cache memory.
Now there's only a copy of the texture glyph cache in graphics memory, avoiding the system memory copy that we used earlier. In addition the texture will use the GL_ALPHA texture format when possible, making it consume less graphics memory as well. Reviewed-by: Tom
Diffstat (limited to 'src/opengl/qgl.h')
-rw-r--r--src/opengl/qgl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opengl/qgl.h b/src/opengl/qgl.h
index 19d779a..6b511e2 100644
--- a/src/opengl/qgl.h
+++ b/src/opengl/qgl.h
@@ -363,6 +363,7 @@ private:
friend class QGLWindowSurface;
friend class QGLPixmapData;
friend class QGLPixmapFilterBase;
+ friend class QGLTextureGlyphCache;
friend QGLFormat::OpenGLVersionFlags QGLFormat::openGLVersionFlags();
#ifdef Q_WS_MAC
public: