mesa: Update _ElementSize.

This commit is contained in:
Brian Paul
2011-04-07 12:07:32 +01:00
committed by José Fonseca
parent 23d75936a7
commit 204991bf5d
5 changed files with 7 additions and 0 deletions

View File

@@ -41,6 +41,7 @@
#include "glheader.h"
#include "hash.h"
#include "image.h"
#include "imports.h"
#include "context.h"
#include "mfeatures.h"
@@ -207,6 +208,7 @@ init_array(struct gl_context *ctx,
array->Ptr = NULL;
array->Enabled = GL_FALSE;
array->Normalized = GL_FALSE;
array->_ElementSize = size * _mesa_sizeof_type(type);
#if FEATURE_ARB_vertex_buffer_object
/* Vertex array buffers */
_mesa_reference_buffer_object(ctx, &array->BufferObj,