diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2002-07-12 15:54:01 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2002-07-12 15:54:01 +0000 |
commit | f02a5f6cc55fc61229a038ac72edb3ce97cb6950 (patch) | |
tree | b3f3b47105dd5939751262bd880dc7821b435679 /progs/demos/readpix.c | |
parent | 902d2faadf37a5627ab2cbcd8993825c8749ec82 (diff) | |
download | external_mesa3d-f02a5f6cc55fc61229a038ac72edb3ce97cb6950.zip external_mesa3d-f02a5f6cc55fc61229a038ac72edb3ce97cb6950.tar.gz external_mesa3d-f02a5f6cc55fc61229a038ac72edb3ce97cb6950.tar.bz2 |
Pedantic compiler fixes (Sven Panne)
Diffstat (limited to 'progs/demos/readpix.c')
-rw-r--r-- | progs/demos/readpix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/progs/demos/readpix.c b/progs/demos/readpix.c index 0277a46..ec36650 100644 --- a/progs/demos/readpix.c +++ b/progs/demos/readpix.c @@ -1,4 +1,4 @@ -/* $Id: readpix.c,v 1.7 2002/05/02 09:17:59 alanh Exp $ */ +/* $Id: readpix.c,v 1.8 2002/07/12 15:54:02 brianp Exp $ */ /* * glReadPixels and glCopyPixels test @@ -219,7 +219,7 @@ Init( GLboolean ciMode ) if (ciMode) { /* Convert RGB image to grayscale */ - GLubyte *indexImage = malloc( ImgWidth * ImgHeight ); + GLubyte *indexImage = (GLubyte *) malloc( ImgWidth * ImgHeight ); GLint i; for (i=0; i<ImgWidth*ImgHeight; i++) { int gray = Image[i*3] + Image[i*3+1] + Image[i*3+2]; |