summaryrefslogtreecommitdiff
path: root/tests/shaders/vp-clipdistance-03.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shaders/vp-clipdistance-03.c')
-rw-r--r--tests/shaders/vp-clipdistance-03.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/shaders/vp-clipdistance-03.c b/tests/shaders/vp-clipdistance-03.c
index 50dcb8acf..c30dc02cb 100644
--- a/tests/shaders/vp-clipdistance-03.c
+++ b/tests/shaders/vp-clipdistance-03.c
@@ -31,8 +31,6 @@
#include "piglit-util.h"
#include "piglit-framework.h"
-#define ELEMENTS(x) (sizeof(x) / sizeof(x[0]))
-
#define TEST_ROWS 1
#define TEST_COLS 1
#define BOX_SIZE 32
@@ -78,7 +76,7 @@ piglit_display(void)
glClear(GL_COLOR_BUFFER_BIT);
- for (i = 0; i < ELEMENTS(progs); i++) {
+ for (i = 0; i < ARRAY_SIZE(progs); i++) {
const int x = 1 + (i * (BOX_SIZE + 1));
glBindProgramARB(GL_VERTEX_PROGRAM_ARB, progs[i]);
@@ -112,7 +110,7 @@ piglit_init(int argc, char **argv)
piglit_require_extension("GL_NV_vertex_program2_option");
piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE);
- for (i = 0; i < ELEMENTS(progs); i++) {
+ for (i = 0; i < ARRAY_SIZE(progs); i++) {
char shader_source[1024];
snprintf(shader_source, sizeof(shader_source),