[Change] If AA_LINE is enabled, smooth hyperspace lines.

This commit is contained in:
Allanis 2014-03-04 03:07:58 +00:00
parent 406e3363f1
commit a2a39158ac

View File

@ -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 {