diff --git a/examples/vwebp.c b/examples/vwebp.c index 66d3e2a0..dc7f2997 100644 --- a/examples/vwebp.c +++ b/examples/vwebp.c @@ -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();