diff --git a/src/tests/kits/opengl/glut/game_mode/game_mode.c b/src/tests/kits/opengl/glut/game_mode/game_mode.c index 1792702e2e..e37588bf5a 100644 --- a/src/tests/kits/opengl/glut/game_mode/game_mode.c +++ b/src/tests/kits/opengl/glut/game_mode/game_mode.c @@ -139,6 +139,16 @@ keyboard(unsigned char key, int x, int y) init(); break; } + + case 'l': + case 'L': { + // return to default window + glutLeaveGameMode(); + if (!glutGetWindow()) + // exit if none + exit(0); + break; + } } }