[Change] If AA_LINE is enabled, smooth hyperspace lines.
This commit is contained in:
parent
406e3363f1
commit
a2a39158ac
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user