I'm using GLUT under windows and my program is crashing everytime I minimize the window. Is there something I'm missing when setting up GLUT? It has to be a problem with GLUT because even with a simple GL program I can get it to crash everytime when I minimize. Here's how I setup GLUT:
glutInitWindowPosition(0, 0);
glutInitWindowSize(640, 480);
glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH);
glutCreateWindow("Dan");
glutDisplayFunc(ShowScreen);
glutReshapeFunc(ChangeSize);
glutVisibilityFunc(visible);
glutSpecialFunc(special);
glutKeyboardFunc(key);
Thanks



float)(width/height)