summaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo/vbo_context.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/vbo/vbo_context.c')
-rw-r--r--src/mesa/vbo/vbo_context.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/mesa/vbo/vbo_context.c b/src/mesa/vbo/vbo_context.c
index dbeb6871e7d..f516c678432 100644
--- a/src/mesa/vbo/vbo_context.c
+++ b/src/mesa/vbo/vbo_context.c
@@ -51,19 +51,19 @@ check_size(const GLfloat *attr)
* Helper for initializing a vertex array.
*/
static void
-init_array(struct gl_context *ctx, struct gl_vertex_array *cl,
+init_array(struct gl_context *ctx, struct gl_vertex_array *array,
unsigned size, const void *pointer)
{
- memset(cl, 0, sizeof(*cl));
+ memset(array, 0, sizeof(*array));
- cl->Size = size;
- cl->Type = GL_FLOAT;
- cl->Format = GL_RGBA;
- cl->StrideB = 0;
- cl->_ElementSize = cl->Size * sizeof(GLfloat);
- cl->Ptr = pointer;
+ array->Size = size;
+ array->Type = GL_FLOAT;
+ array->Format = GL_RGBA;
+ array->StrideB = 0;
+ array->_ElementSize = array->Size * sizeof(GLfloat);
+ array->Ptr = pointer;
- _mesa_reference_buffer_object(ctx, &cl->BufferObj,
+ _mesa_reference_buffer_object(ctx, &array->BufferObj,
ctx->Shared->NullBufferObj);
}
@@ -82,9 +82,9 @@ init_legacy_currval(struct gl_context *ctx)
* attribute:
*/
for (i = 0; i < VERT_ATTRIB_FF_MAX; i++) {
- struct gl_vertex_array *cl = &vbo->currval[VERT_ATTRIB_FF(i)];
+ struct gl_vertex_array *array = &vbo->currval[VERT_ATTRIB_FF(i)];
- init_array(ctx, cl,
+ init_array(ctx, array,
check_size(ctx->Current.Attrib[i]),
ctx->Current.Attrib[i]);
}
@@ -98,9 +98,9 @@ init_generic_currval(struct gl_context *ctx)
GLuint i;
for (i = 0; i < VERT_ATTRIB_GENERIC_MAX; i++) {
- struct gl_vertex_array *cl = &vbo->currval[VBO_ATTRIB_GENERIC0 + i];
+ struct gl_vertex_array *array = &vbo->currval[VBO_ATTRIB_GENERIC0 + i];
- init_array(ctx, cl, 1, ctx->Current.Attrib[VERT_ATTRIB_GENERIC0 + i]);
+ init_array(ctx, array, 1, ctx->Current.Attrib[VERT_ATTRIB_GENERIC0 + i]);
}
}
@@ -115,7 +115,7 @@ init_mat_currval(struct gl_context *ctx)
* attribute:
*/
for (i = 0; i < MAT_ATTRIB_MAX; i++) {
- struct gl_vertex_array *cl =
+ struct gl_vertex_array *array =
&vbo->currval[VBO_ATTRIB_MAT_FRONT_AMBIENT + i];
unsigned size;
@@ -136,7 +136,7 @@ init_mat_currval(struct gl_context *ctx)
break;
}
- init_array(ctx, cl, size, ctx->Light.Material.Attrib[i]);
+ init_array(ctx, array, size, ctx->Light.Material.Attrib[i]);
}
}