X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fstairs.c;h=9381f6fadae7246c78943d50e2e4ef1cb367e78e;hb=5f9c47ca98dd43d8f59b7c27d3fde6edfde4fe21;hp=3216dd37b27c4b14443e2203e14a7c25ca07b1ee;hpb=c1b9b55ad8d59dc05ef55e316aebf5863e7dfa56;p=xscreensaver diff --git a/hacks/glx/stairs.c b/hacks/glx/stairs.c index 3216dd37..9381f6fa 100644 --- a/hacks/glx/stairs.c +++ b/hacks/glx/stairs.c @@ -298,6 +298,7 @@ draw_sphere(int pos, int tick) glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialYellow); glDisable (GL_TEXTURE_2D); glShadeModel(GL_SMOOTH); + glFrontFace(GL_CCW); polys += unit_sphere (32, 32, False); glShadeModel(GL_FLAT); glEnable (GL_TEXTURE_2D); @@ -390,8 +391,6 @@ pinit(void) { int status; glClearDepth(1.0); - glClearColor(0.0, 0.0, 0.0, 1.0); - glLightfv(GL_LIGHT0, GL_AMBIENT, ambient); glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuse); glLightfv(GL_LIGHT0, GL_POSITION, position0);