mesa: redraw upon keypress in trivial/tri.c
This commit is contained in:
+7
-9
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user