summaryrefslogtreecommitdiff
path: root/src/imports/location/mapnode.cpp
diff options
context:
space:
mode:
authorAlex Wilson <alex.wilson@nokia.com>2011-12-16 13:18:20 +1000
committerQt by Nokia <qt-info@nokia.com>2011-12-16 05:36:30 +0100
commit9acb633d4faabcc813d5e0488808041a1cd36a6e (patch)
tree5d41ce998fc758e6061a0c7c91a44a06faca3237 /src/imports/location/mapnode.cpp
parent84686e81c4b2a456826910ee618c8e462a81a0c1 (diff)
downloadqtlocation-9acb633d4faabcc813d5e0488808041a1cd36a6e.tar.gz
Smoother line drawing on maps (--performance?)
Adding this as a separate commit so it can be easily spotted and reverted later if it causes performance issues on some GPUs. Change-Id: I90626f6db6e3eaf70f14b3af06a05cb684db94e7 Reviewed-by: David Laing <david.laing@nokia.com>
Diffstat (limited to 'src/imports/location/mapnode.cpp')
-rw-r--r--src/imports/location/mapnode.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/imports/location/mapnode.cpp b/src/imports/location/mapnode.cpp
index c6e53fb4..d68b6961 100644
--- a/src/imports/location/mapnode.cpp
+++ b/src/imports/location/mapnode.cpp
@@ -140,6 +140,12 @@ void MapNode::updateFBO()
mapItems_.at(i)->updateItem();
}
#endif
+
+#if defined(GL_LINE_SMOOTH) && defined(GL_LINE_SMOOTH_HINT)
+ glEnable(GL_LINE_SMOOTH);
+ glHint(GL_LINE_SMOOTH_HINT, GL_NICEST);
+#endif
+
// No stereo rendering, set the eye as neutral
painter.setEye(QGL::NoEye);
// TODO this needs to be figured out (or confirmed as invalid thing).