mesa: redraw upon keypress in trivial/tri.c

This commit is contained in:
Brian Paul 2008-10-17 13:37:11 -06:00
parent 8d6ef125ac
commit d422c1eb5c
1 changed files with 7 additions and 9 deletions

View File

@ -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)