diff -u -r xscreensaver-5.08/hacks/glx/voronoi.c xscreensaver-5.08-fix/hacks/glx/voronoi.c --- xscreensaver-5.08/hacks/glx/voronoi.c 2008-08-02 12:58:45.000000000 -0700 +++ xscreensaver-5.08-fix/hacks/glx/voronoi.c 2008-12-28 00:51:30.000000000 -0800 @@ -144,29 +144,24 @@ GLfloat step = M_PI * 2 / faces; GLfloat s2 = step/2; GLfloat th; - GLfloat x, y, x0, y0; + GLfloat x, y; - glBegin(GL_TRIANGLES); + glBegin(GL_TRIANGLE_FAN); th = 0; x = 1; y = 0; - x0 = cos (s2); - y0 = sin (s2); + glVertex3f(0, 0, 1); for (i = 0; i < faces; i++) { - glVertex3f(0, 0, 1); glVertex3f(x, y, 0); th += step; - x0 = cos (th + s2); - y0 = sin (th + s2); - x = cos (th); - y = sin (th); - - glVertex3f(x, y, 0); + x = cos (th); + y = sin (th); } + glVertex3f(1, 0, 0); glEnd(); return faces; }