diff --git a/api/gutil.C b/api/gutil.C index 7971337524..6dc7c4f2ba 100755 --- a/api/gutil.C +++ b/api/gutil.C @@ -856,15 +856,13 @@ void STARFIELD::build_stars(int sz, float sp) { // move stars // void STARFIELD::update_stars(float dt) { - glMatrixMode(GL_MODELVIEW); int i; - GLfloat mat_emission[] = {1, 1, 1, 1}; - glMaterialfv(GL_FRONT_AND_BACK, GL_EMISSION, mat_emission ); - glColor3f(1.0, 1.0, 1.0); - + mode_ortho(); + mode_lines(); + glColor4f(1.0, 1.0, 1.0, 1.0); for (i=0; i zmax) stars[i].z -= zmax; @@ -879,9 +877,7 @@ void STARFIELD::update_stars(float dt) { glVertex2f(x, y); glEnd(); } - - GLfloat no_mat[] = { 0.0, 0.0, 0.0, 1.0 }; - glMaterialfv( GL_FRONT_AND_BACK, GL_EMISSION, no_mat ); + ortho_done(); } void STARFIELD::replace_star(int i) {