From: Brian Paul Date: Fri, 17 Oct 2008 19:37:11 +0000 (-0600) Subject: mesa: redraw upon keypress in trivial/tri.c X-Git-Tag: 062012170305~17580^2~390^2~242 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d422c1eb5c0fac8f946758ecce96072505c77683;p=profile%2Fivi%2Fmesa.git mesa: redraw upon keypress in trivial/tri.c --- diff --git a/progs/trivial/tri.c b/progs/trivial/tri.c index 12fa8d1..64c5294 100644 --- a/progs/trivial/tri.c +++ b/progs/trivial/tri.c @@ -56,15 +56,13 @@ static void Reshape(int width, int height) static void Key(unsigned char key, int x, int y) { - - switch (key) { - case 27: - exit(0); - default: - return; - } - - glutPostRedisplay(); + switch (key) { + case 27: + exit(0); + default: + glutPostRedisplay(); + return; + } } static void Draw(void)