nouveau: Use gl_array_attribute::_ElementSize.
[mesa.git] / src / mesa / drivers / dri / nouveau / nouveau_vbo_t.c
index 3900c770cbe7b9cc43a04cd8d1e5e23e70866a84..97ff07808b9ac0318924d22f5a5b44986dfd06f8 100644 (file)
@@ -49,7 +49,7 @@ get_array_stride(struct gl_context *ctx, const struct tnl_vertex_array *a)
        if (render->mode == VBO && !_mesa_is_bufferobj(binding->BufferObj)) {
                const struct gl_array_attributes *attrib = a->VertexAttrib;
                /* Pack client buffers. */
-               return align(_mesa_sizeof_type(attrib->Type) * attrib->Size, 4);
+               return align(attrib->_ElementSize, 4);
        } else {
                return binding->Stride;
        }