summaryrefslogtreecommitdiff
path: root/progs/demos/drawpix.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/demos/drawpix.c')
-rw-r--r--progs/demos/drawpix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/progs/demos/drawpix.c b/progs/demos/drawpix.c
index 222c8209c1..25d336ece6 100644
--- a/progs/demos/drawpix.c
+++ b/progs/demos/drawpix.c
@@ -1,4 +1,4 @@
-/* $Id: drawpix.c,v 1.7 2002/04/22 16:03:37 brianp Exp $ */
+/* $Id: drawpix.c,v 1.8 2002/07/12 15:54:02 brianp Exp $ */
/*
* glDrawPixels demo/test/benchmark
@@ -257,7 +257,7 @@ static void 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];