diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2003-05-28 15:30:53 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2003-05-28 15:30:53 +0000 |
commit | d18c08fe890e100269be8d5cccbaf7cd7bf9916d (patch) | |
tree | 4cf527b439964f2be44cd709da5396fcb8b73f87 /src/mesa/tnl/t_imm_api.c | |
parent | 0b52018df2a64a159f697756fbda47bcd1de3ef4 (diff) |
silence some warnings (Evgeny Kotsuba)
Diffstat (limited to 'src/mesa/tnl/t_imm_api.c')
-rw-r--r-- | src/mesa/tnl/t_imm_api.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/tnl/t_imm_api.c b/src/mesa/tnl/t_imm_api.c index 0eef3b735c..cc7f42f384 100644 --- a/src/mesa/tnl/t_imm_api.c +++ b/src/mesa/tnl/t_imm_api.c @@ -1,5 +1,3 @@ -/* $Id: t_imm_api.c,v 1.40 2003/03/31 18:19:56 brianp Exp $ */ - /* * Mesa 3-D graphics library * Version: 5.1 @@ -405,7 +403,8 @@ _tnl_End(void) */ #define CHECK_ATTRIB_ARRAY(IM, ATTR) \ if (!IM->Attrib[ATTR]) { \ - IM->Attrib[ATTR] = _mesa_malloc(IMM_SIZE * 4 * sizeof(GLfloat)); \ + IM->Attrib[ATTR] = \ + (GLfloat (*)[4]) _mesa_malloc(IMM_SIZE * 4 * sizeof(GLfloat)); \ if (!IM->Attrib[ATTR]) { \ GET_CURRENT_CONTEXT(ctx); \ _mesa_error(ctx, GL_OUT_OF_MEMORY, "glVertex/Normal/etc"); \ |