diff options
Diffstat (limited to 'tests/general/hiz.c')
-rw-r--r-- | tests/general/hiz.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/general/hiz.c b/tests/general/hiz.c index a64225683..10fa53ce2 100644 --- a/tests/general/hiz.c +++ b/tests/general/hiz.c @@ -162,7 +162,7 @@ GLboolean test_less() glVertex3fv(v23); glEnd(); - pix = malloc(piglit_width * piglit_height * 12); + pix = malloc(piglit_width * piglit_height * 3 * sizeof(float)); glReadPixels(0, 0, piglit_width, piglit_height, GL_RGB, GL_FLOAT, pix); /* check pixels */ |