summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2011-03-14 10:40:06 +0100
committerMarek Olšák <maraeo@gmail.com>2011-03-14 10:40:06 +0100
commit8e921b623e060b1f6ea1169c6234c267300dd666 (patch)
tree34e4d623f38934fb304a6eb1efff92cca00bcd7c
parent6a47b41fe72d6caed97f8762afe33805fc42870d (diff)
fbo-*-formats: redraw in key_func
-rw-r--r--tests/fbo/fbo-formats.h4
-rw-r--r--tests/fbo/fbo-generatemipmap-formats.c4
2 files changed, 2 insertions, 6 deletions
diff --git a/tests/fbo/fbo-formats.h b/tests/fbo/fbo-formats.h
index 18109ca3d..eee8a7c18 100644
--- a/tests/fbo/fbo-formats.h
+++ b/tests/fbo/fbo-formats.h
@@ -519,10 +519,8 @@ static void fbo_formats_key_func(unsigned char key, int x, int y)
format_index = test_sets[test_index].num_formats - 1;
}
break;
-
- default:
- piglit_escape_exit_key(key, x, y);
}
+ piglit_escape_exit_key(key, x, y);
}
static void fbo_formats_init(int argc, char **argv, GLboolean print_options)
diff --git a/tests/fbo/fbo-generatemipmap-formats.c b/tests/fbo/fbo-generatemipmap-formats.c
index a3c098240..f19b2ac05 100644
--- a/tests/fbo/fbo-generatemipmap-formats.c
+++ b/tests/fbo/fbo-generatemipmap-formats.c
@@ -59,10 +59,8 @@ key_func(unsigned char key, int x, int y)
case 'd':
set_npot(tex_width == 256 && GLEW_ARB_texture_non_power_of_two);
break;
-
- default:
- fbo_formats_key_func(key, x, y);
}
+ fbo_formats_key_func(key, x, y);
}
static int