From f02a5f6cc55fc61229a038ac72edb3ce97cb6950 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 12 Jul 2002 15:54:01 +0000 Subject: Pedantic compiler fixes (Sven Panne) --- progs/demos/trispd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'progs/demos/trispd.c') 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)); -- cgit v1.1