summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2014-10-29 23:49:43 +0000
committerJosé Fonseca <jfonseca@vmware.com>2014-10-29 23:49:43 +0000
commit30086dd1e082a52b001556d2f642dbf2793e7b3a (patch)
tree0a3e56a08806db7bc43b8812ee69b61ac06980d2
parent1ceb4b358e69cea444b0d1befa735e348f0bce25 (diff)
gl-1.0-readpixsanity: Remove malloc casts.
As ordered by Matt Turner.
-rw-r--r--tests/spec/gl-1.0/readpix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/spec/gl-1.0/readpix.c b/tests/spec/gl-1.0/readpix.c
index 26f44a6c0..f233b07b3 100644
--- a/tests/spec/gl-1.0/readpix.c
+++ b/tests/spec/gl-1.0/readpix.c
@@ -102,7 +102,7 @@ check_rgba(void)
float expected[4], expected_rgba[4], actual_rgba[4];
const int w = piglit_width;
const int h = piglit_height;
- GLfloat *buf = (GLfloat *)malloc(h * w * 4 * sizeof *buf);
+ GLfloat *buf = malloc(h * w * 4 * sizeof *buf);
GLfloat dr, dg, db, da;
GLint rbits, gbits, bbits, abits;
glGetIntegerv(GL_RED_BITS, &rbits);
@@ -202,7 +202,7 @@ check_depth(void)
GLdouble expected, expected_depth, actual, actual_depth;
const int w = piglit_width;
const int h = piglit_height;
- GLuint *buf = (GLuint *)malloc(h * w * sizeof *buf);
+ GLuint *buf = malloc(h * w * sizeof *buf);
double current_error = 0.0;
GLfloat dd;
double err;
@@ -287,7 +287,7 @@ check_stencil(void)
bool pass = true;
const int w = piglit_width;
const int h = piglit_height;
- GLuint *buf = (GLuint *)malloc(h * w * sizeof *buf);
+ GLuint *buf = malloc(h * w * sizeof *buf);
GLuint expected;
GLint sbits;
glGetIntegerv(GL_STENCIL_BITS, &sbits);