summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorTrond Kjernåsen <trond@trolltech.com>2009-08-31 14:31:56 (GMT)
committerTrond Kjernåsen <trond@trolltech.com>2009-08-31 14:34:14 (GMT)
commitefb30e2d080e18b8deca4778f82cbc6cc1da7e74 (patch)
tree019e0b7b97dedbbcfb6ca0b75ac548a6d5ef0750 /src/opengl
parentb2d0d7e2c9103354044d34a2b69410a0aed1f5d1 (diff)
downloadQt-efb30e2d080e18b8deca4778f82cbc6cc1da7e74.zip
Qt-efb30e2d080e18b8deca4778f82cbc6cc1da7e74.tar.gz
Qt-efb30e2d080e18b8deca4778f82cbc6cc1da7e74.tar.bz2
Fixed a problem with corrupted text in the GL 2 engine.
Blending should not be enabled when copying the font cache texture into the fbo. It *may* cause artifacts with some drivers. Reviewed-by: Samuel
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
index 895dd65..a976a02 100644
--- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
+++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
@@ -226,6 +226,7 @@ void QGLTextureGlyphCache::resizeTextureData(int width, int height)
glDisable(GL_DEPTH_TEST);
glDisable(GL_SCISSOR_TEST);
+ glDisable(GL_BLEND);
glViewport(0, 0, oldWidth, oldHeight);