summaryrefslogtreecommitdiff
path: root/tests/shaders/glsl-unused-varying.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-08-04 14:28:56 -0700
committerEric Anholt <eric@anholt.net>2009-08-04 14:28:56 -0700
commit07978f15ed62ce2499db981d7cdc5f4b3587d871 (patch)
tree992d802f98be0e1d9c8bae5b5225984ef34ef1a6 /tests/shaders/glsl-unused-varying.c
parent145d85b997d37a36e0baae3dcc15c28a2292cfaf (diff)
shaders: Remove a bunch of copies of piglit_escape_exit_key().
Diffstat (limited to 'tests/shaders/glsl-unused-varying.c')
-rw-r--r--tests/shaders/glsl-unused-varying.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/tests/shaders/glsl-unused-varying.c b/tests/shaders/glsl-unused-varying.c
index e511d55e6..0f7071bb4 100644
--- a/tests/shaders/glsl-unused-varying.c
+++ b/tests/shaders/glsl-unused-varying.c
@@ -88,19 +88,6 @@ display(void)
}
}
-static void key(unsigned char key, int x, int y)
-{
- (void) x;
- (void) y;
- switch (key) {
- case 27:
- exit(0);
- break;
- }
- glutPostRedisplay();
-}
-
-
static void init()
{
GLint vs, fs;
@@ -147,7 +134,7 @@ int main(int argc, char**argv)
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB);
glutInitWindowSize(WIN_WIDTH, WIN_HEIGHT);
glutCreateWindow("glsl-unused-varying");
- glutKeyboardFunc(key);
+ glutKeyboardFunc(piglit_escape_exit_key);
glutDisplayFunc(display);
glewInit();