summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-11-25 09:04:19 (GMT)
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-11-25 09:13:42 (GMT)
commitacf398f764a7d73f5857d4544df4e06bfe60797a (patch)
tree135c2513b79d3ebc0a5a99c66190b90d2b0d0770 /src/opengl
parent9073a38e2ad3342291e9b2e68cf120a2faba06b0 (diff)
downloadQt-acf398f764a7d73f5857d4544df4e06bfe60797a.zip
Qt-acf398f764a7d73f5857d4544df4e06bfe60797a.tar.gz
Qt-acf398f764a7d73f5857d4544df4e06bfe60797a.tar.bz2
Fixed subpixel text antialiasing with the GL2 engine on ATI.
Use subpixel antialiasing even if the there is an alpha channel. Reviewed-by: Trond
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
index 823f919..07432c6 100644
--- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
+++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
@@ -1773,13 +1773,10 @@ bool QGL2PaintEngineEx::begin(QPaintDevice *pdev)
d->glyphCacheType = QFontEngineGlyphCache::Raster_A8;
#if !defined(QT_OPENGL_ES_2)
- if (!d->device->format().alpha()
#if defined(Q_WS_WIN)
- && qt_cleartype_enabled
+ if (qt_cleartype_enabled)
#endif
- ) {
d->glyphCacheType = QFontEngineGlyphCache::Raster_RGBMask;
- }
#endif
#if defined(QT_OPENGL_ES_2)