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_vb_light.c | |
parent | 74c33393b4ebcc1616c0d8f1b6f43d658aed3f22 (diff) |
Assorted casts to silence g++ warnings.
Diffstat (limited to 'src/mesa/tnl/t_vb_light.c')
-rw-r--r-- | src/mesa/tnl/t_vb_light.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/tnl/t_vb_light.c b/src/mesa/tnl/t_vb_light.c index 154c3d2961a..ccbcba1f2a1 100644 --- a/src/mesa/tnl/t_vb_light.c +++ b/src/mesa/tnl/t_vb_light.c @@ -69,7 +69,7 @@ static void import_color_material( GLcontext *ctx, GLuint count = VB->Count; if (!to->Ptr) { - to->Ptr = ALIGN_MALLOC( VB->Size * 4 * sizeof(GLfloat), 32 ); + to->Ptr = (GLubyte *) ALIGN_MALLOC( VB->Size * 4 * sizeof(GLfloat), 32 ); to->Type = GL_FLOAT; } @@ -248,7 +248,7 @@ static GLboolean run_validate_lighting( GLcontext *ctx, static void alloc_4chan( struct gl_client_array *a, GLuint sz ) { - a->Ptr = ALIGN_MALLOC( sz * sizeof(GLchan) * 4, 32 ); + a->Ptr = (GLubyte *) ALIGN_MALLOC( sz * sizeof(GLchan) * 4, 32 ); a->Size = 4; a->Type = CHAN_TYPE; a->Stride = 0; |