vwebp: fix exit w/freeglut

GLUT_ACTION_CONTINUE_EXECUTION is required to allow glutMainLoop to
return.

Change-Id: I8eb7e657a52d6923858959b7b03447a7ddb53ca0
This commit is contained in:
James Zern 2012-05-25 14:53:46 -07:00
parent 1875d926e7
commit 880fd98ca1

View File

@ -330,6 +330,9 @@ int main(int argc, char *argv[]) {
// Start display (and timer) // Start display (and timer)
glutInit(&argc, argv); glutInit(&argc, argv);
#ifdef FREEGLUT
glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE, GLUT_ACTION_CONTINUE_EXECUTION);
#endif
StartDisplay(kParams.pic); StartDisplay(kParams.pic);
if (kParams.has_animation) glutTimerFunc(0, decode_callback, 0); if (kParams.has_animation) glutTimerFunc(0, decode_callback, 0);
glutMainLoop(); glutMainLoop();