vwebp: fix exit w/freeglut
GLUT_ACTION_CONTINUE_EXECUTION is required to allow glutMainLoop to return. Change-Id: I8eb7e657a52d6923858959b7b03447a7ddb53ca0
This commit is contained in:
parent
1875d926e7
commit
880fd98ca1
@ -330,6 +330,9 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
// Start display (and timer)
|
||||
glutInit(&argc, argv);
|
||||
#ifdef FREEGLUT
|
||||
glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE, GLUT_ACTION_CONTINUE_EXECUTION);
|
||||
#endif
|
||||
StartDisplay(kParams.pic);
|
||||
if (kParams.has_animation) glutTimerFunc(0, decode_callback, 0);
|
||||
glutMainLoop();
|
||||
|
Loading…
Reference in New Issue
Block a user