mesa: redraw upon keypress in trivial/tri.c
This commit is contained in:
parent
8d6ef125ac
commit
d422c1eb5c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue