summaryrefslogtreecommitdiffstats
path: root/progs/demos/trispd.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-07-12 15:54:01 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-07-12 15:54:01 +0000
commitf02a5f6cc55fc61229a038ac72edb3ce97cb6950 (patch)
treeb3f3b47105dd5939751262bd880dc7821b435679 /progs/demos/trispd.c
parent902d2faadf37a5627ab2cbcd8993825c8749ec82 (diff)
downloadexternal_mesa3d-f02a5f6cc55fc61229a038ac72edb3ce97cb6950.zip
external_mesa3d-f02a5f6cc55fc61229a038ac72edb3ce97cb6950.tar.gz
external_mesa3d-f02a5f6cc55fc61229a038ac72edb3ce97cb6950.tar.bz2
Pedantic compiler fixes (Sven Panne)
Diffstat (limited to 'progs/demos/trispd.c')
-rw-r--r--progs/demos/trispd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/progs/demos/trispd.c b/progs/demos/trispd.c
index 96152d4..61d6255 100644
--- a/progs/demos/trispd.c
+++ b/progs/demos/trispd.c
@@ -1,4 +1,4 @@
-/* $Id: trispd.c,v 1.3 2002/04/22 16:03:37 brianp Exp $ */
+/* $Id: trispd.c,v 1.4 2002/07/12 15:54:02 brianp Exp $ */
/*
* Simple GLUT program to measure triangle strip rendering speed.
@@ -131,7 +131,7 @@ static void LoadTex(int comp, int filter)
{
GLubyte *pixels;
int x, y;
- pixels = malloc(4*256*256);
+ pixels = (GLubyte *) malloc(4*256*256);
for (y = 0; y < 256; ++y)
for (x = 0; x < 256; ++x) {
pixels[(y*256+x)*4+0] = (int)(128.5 + 127.0 * cos(0.024544 * x));