summaryrefslogtreecommitdiffstats
path: root/src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2010-12-17 23:00:12 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2010-12-17 23:00:12 (GMT)
commitab9d11946e5ff88008e8c2d887b8d0458ab9a98c (patch)
tree41642e36b440b5e326a2dd56e2dca041ddb52908 /src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp
parent432cd48a777fddc04f4c323df5876bcc6c0c2829 (diff)
parent0d3786a9cd6dc3c4dd17a7e98fe138a7abaabb29 (diff)
downloadQt-ab9d11946e5ff88008e8c2d887b8d0458ab9a98c.zip
Qt-ab9d11946e5ff88008e8c2d887b8d0458ab9a98c.tar.gz
Qt-ab9d11946e5ff88008e8c2d887b8d0458ab9a98c.tar.bz2
Merge branch '4.7-upstream' into 4.7-water
Diffstat (limited to 'src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp')
-rw-r--r--src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp b/src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp
index 1b879c3..ba311c3 100644
--- a/src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp
+++ b/src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp
@@ -323,6 +323,9 @@ int QGLTextureGlyphCache::maxTextureWidth() const
int QGLTextureGlyphCache::maxTextureHeight() const
{
- return ctx->d_ptr->maxTextureSize();
+ if (ctx->d_ptr->workaround_brokenTexSubImage)
+ return qMin(1024, ctx->d_ptr->maxTextureSize());
+ else
+ return ctx->d_ptr->maxTextureSize();
}
QT_END_NAMESPACE