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/trispd.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/trispd.c')
-rw-r--r-- | progs/demos/trispd.c | 4 |
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)); |