From a2a39158acb924b4f5a0b3442c433b3fa0520076 Mon Sep 17 00:00:00 2001 From: Allanis Date: Tue, 4 Mar 2014 03:07:58 +0000 Subject: [PATCH] [Change] If AA_LINE is enabled, smooth hyperspace lines. --- src/space.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/space.c b/src/space.c index 47e78da..921e208 100644 --- a/src/space.c +++ b/src/space.c @@ -1177,6 +1177,10 @@ static void space_renderStars(const double dt) { /* Fancy hyperspace effects. */ glShadeModel(GL_SMOOTH); + /* Enable AA if possible. */ + if(gl_has(OPENGL_AA_LINE)) + glEnable(GL_LINE_SMOOTH); + glBegin(GL_LINES); /* Lines will be based on velocity. */ @@ -1192,6 +1196,9 @@ static void space_renderStars(const double dt) { } glEnd(); + if(gl_has(OPENGL_AA_LINE)) + glDisable(GL_LINE_SMOOTH); + glShadeModel(GL_FLAT); } else {