summaryrefslogtreecommitdiffstats
path: root/progs/demos/shadowtex.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2002-07-12 15:54:01 +0000
committerBrian Paul <[email protected]>2002-07-12 15:54:01 +0000
commitf02a5f6cc55fc61229a038ac72edb3ce97cb6950 (patch)
treeb3f3b47105dd5939751262bd880dc7821b435679 /progs/demos/shadowtex.c
parent902d2faadf37a5627ab2cbcd8993825c8749ec82 (diff)
Pedantic compiler fixes (Sven Panne)
Diffstat (limited to 'progs/demos/shadowtex.c')
-rw-r--r--progs/demos/shadowtex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/progs/demos/shadowtex.c b/progs/demos/shadowtex.c
index c5251727d67..b574f43acd3 100644
--- a/progs/demos/shadowtex.c
+++ b/progs/demos/shadowtex.c
@@ -1,4 +1,4 @@
-/* $Id: shadowtex.c,v 1.6 2002/03/23 16:34:18 brianp Exp $ */
+/* $Id: shadowtex.c,v 1.7 2002/07/12 15:54:02 brianp Exp $ */
/*
* Shadow demo using the GL_ARB_depth_texture, GL_ARB_shadow and
@@ -276,8 +276,8 @@ Display(void)
*/
if (DisplayMode == SHOW_DEPTH_MAPPING) {
/* load depth image as gray-scale luminance texture */
- GLfloat *depth = malloc(ShadowTexWidth * ShadowTexHeight
- * sizeof(GLfloat));
+ GLfloat *depth = (GLfloat *) malloc(ShadowTexWidth * ShadowTexHeight
+ * sizeof(GLfloat));
if (depth) {
glReadPixels(0, 0, ShadowTexWidth, ShadowTexHeight,
GL_DEPTH_COMPONENT, GL_FLOAT, depth);