diff options
Diffstat (limited to 'src/mesa/main/arrayobj.c')
-rw-r--r-- | src/mesa/main/arrayobj.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/main/arrayobj.c b/src/mesa/main/arrayobj.c index 11e34826deb..aa425b86567 100644 --- a/src/mesa/main/arrayobj.c +++ b/src/mesa/main/arrayobj.c @@ -140,8 +140,8 @@ unbind_array_object_vbos(struct gl_context *ctx, struct gl_vertex_array_object * { GLuint i; - for (i = 0; i < ARRAY_SIZE(obj->VertexBinding); i++) - _mesa_reference_buffer_object(ctx, &obj->VertexBinding[i].BufferObj, NULL); + for (i = 0; i < ARRAY_SIZE(obj->BufferBinding); i++) + _mesa_reference_buffer_object(ctx, &obj->BufferBinding[i].BufferObj, NULL); for (i = 0; i < ARRAY_SIZE(obj->_VertexAttrib); i++) _mesa_reference_buffer_object(ctx, &obj->_VertexAttrib[i].BufferObj, NULL); @@ -236,7 +236,7 @@ init_array(struct gl_context *ctx, GLuint index, GLint size, GLint type) { struct gl_array_attributes *array = &vao->VertexAttrib[index]; - struct gl_vertex_buffer_binding *binding = &vao->VertexBinding[index]; + struct gl_vertex_buffer_binding *binding = &vao->BufferBinding[index]; array->Size = size; array->Type = type; @@ -357,7 +357,7 @@ _mesa_update_vao_client_arrays(struct gl_context *ctx, struct gl_vertex_buffer_binding *buffer_binding; attrib_array = &vao->VertexAttrib[attrib]; - buffer_binding = &vao->VertexBinding[attrib_array->BufferBindingIndex]; + buffer_binding = &vao->BufferBinding[attrib_array->BufferBindingIndex]; client_array = &vao->_VertexAttrib[attrib]; _mesa_update_client_array(ctx, client_array, attrib_array, @@ -380,7 +380,7 @@ _mesa_all_varyings_in_vbos(const struct gl_vertex_array_object *vao) const struct gl_array_attributes *attrib_array = &vao->VertexAttrib[i]; const struct gl_vertex_buffer_binding *buffer_binding = - &vao->VertexBinding[attrib_array->BufferBindingIndex]; + &vao->BufferBinding[attrib_array->BufferBindingIndex]; /* Only enabled arrays shall appear in the _Enabled bitmask */ assert(attrib_array->Enabled); @@ -411,7 +411,7 @@ _mesa_all_buffers_are_unmapped(const struct gl_vertex_array_object *vao) const struct gl_array_attributes *attrib_array = &vao->VertexAttrib[i]; const struct gl_vertex_buffer_binding *buffer_binding = - &vao->VertexBinding[attrib_array->BufferBindingIndex]; + &vao->BufferBinding[attrib_array->BufferBindingIndex]; /* Only enabled arrays shall appear in the _Enabled bitmask */ assert(attrib_array->Enabled); |