summaryrefslogtreecommitdiff
path: root/tests/texturing/texture-integer.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/texturing/texture-integer.c')
-rw-r--r--tests/texturing/texture-integer.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/texturing/texture-integer.c b/tests/texturing/texture-integer.c
index 0ae62e893..a256e0ac0 100644
--- a/tests/texturing/texture-integer.c
+++ b/tests/texturing/texture-integer.c
@@ -29,8 +29,6 @@
#include "piglit-util.h"
-#define ELEMENTS(ARRAY) (sizeof(ARRAY) / sizeof(ARRAY[0]))
-
int piglit_width = 100, piglit_height = 100;
int piglit_window_mode = GLUT_RGB | GLUT_ALPHA | GLUT_DOUBLE;
@@ -423,7 +421,7 @@ test_specific_formats(void)
while (glGetError() != GL_NO_ERROR)
;
- for (i = 0; i < ELEMENTS(formats); i++) {
+ for (i = 0; i < ARRAY_SIZE(formats); i++) {
glTexImage2D(GL_TEXTURE_2D, 0, formats[i].intFormat,
16, 16, 0,
formats[i].srcFormat, formats[i].srcType, NULL);