Enable sub-pixel anti-aliasing for default builds on Windows
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Thu, 17 Jan 2013 13:10:02 +0000 (14:10 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 17 Jan 2013 14:41:38 +0000 (15:41 +0100)
While ANGLE builds only provide the OpenGL ES2 APIs, it's still
a desktop technology and we should default to using high quality
anti-aliasing.

Task-number: QTBUG-28782
Change-Id: Iefc764589e935899ead278cedef4c302694dd2bb
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>

src/quick/scenegraph/qsgcontext.cpp

index cec85cc..c9ac190 100644 (file)
@@ -98,7 +98,7 @@ public:
         : gl(0)
         , depthStencilBufferManager(0)
         , distanceFieldCacheManager(0)
-    #ifndef QT_OPENGL_ES
+    #if !defined(QT_OPENGL_ES) || defined(QT_OPENGL_ES_2_ANGLE)
         , distanceFieldAntialiasing(QSGGlyphNode::HighQualitySubPixelAntialiasing)
     #else
         , distanceFieldAntialiasing(QSGGlyphNode::GrayAntialiasing)