update gluPerspective to have more resolution in depth plane

This commit is contained in:
Josh Holtrop 2011-03-24 14:30:47 -04:00
parent 743a964dd3
commit 937bd8cdf4

View File

@ -62,7 +62,7 @@ bool Starfield::configure (GnomeScreensaver & gs)
{
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluPerspective(60.0, gs.getAspectRatio(), 0.01, MAX_STAR_DIST);
gluPerspective(60.0, gs.getAspectRatio(), 1.0, MAX_STAR_DIST);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();