diff options
author | Brian Paul <[email protected]> | 2003-09-19 15:38:15 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2003-09-19 15:38:15 +0000 |
commit | e4fcea2e06571b71a85b4f100c95d866a82f7c19 (patch) | |
tree | df95d1d9eed897c1dd2fee2923163843ddca3228 /src/mesa/tnl/t_imm_elt.c | |
parent | 74c33393b4ebcc1616c0d8f1b6f43d658aed3f22 (diff) |
Assorted casts to silence g++ warnings.
Diffstat (limited to 'src/mesa/tnl/t_imm_elt.c')
-rw-r--r-- | src/mesa/tnl/t_imm_elt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_imm_elt.c b/src/mesa/tnl/t_imm_elt.c index fdecef61af0..9157ca4871f 100644 --- a/src/mesa/tnl/t_imm_elt.c +++ b/src/mesa/tnl/t_imm_elt.c @@ -619,7 +619,7 @@ void _tnl_translate_array_elts( GLcontext *ctx, struct immediate *IM, ASSERT(IM->Attrib[VERT_ATTRIB_POS]); for (attr = 1; attr < VERT_ATTRIB_MAX; attr++) { if ((translate & (1 << attr)) && !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]) { _mesa_error(ctx, GL_OUT_OF_MEMORY, "vertex processing2"); return; |