I have found a bug related to fog. If you enable fog and disable it again you will see that the fog do not disappear. If you try to rotate or move any object after you disabled the fog the program does a segmentation fault. To see the problem add this case to the switch in the Key function in isosurf.c case 'f': fog = !fog; if (fog) { /* Green fog is easy to see */ GLfloat fogColor[4] = {0.5,1.0,0.5,1.0}; glEnable(GL_FOG); glFogi(GL_FOG_MODE,GL_EXP2); glFogfv(GL_FOG_COLOR,fogColor); glFogf(GL_FOG_DENSITY,0.15); glHint(GL_FOG_HINT,GL_DONT_CARE); printf("FOG enable\n"); } else { glDisable(GL_FOG); printf("FOG disable\n"); } glutPostRedisplay(); break; Add this global variable declaration: static GLint fog=0; _______________________________________________ Mesa-dev maillist - [EMAIL PROTECTED] http://lists.mesa3d.org/mailman/listinfo/mesa-dev