mesa: use _mesa_is_bufferobj() in update_array()

This commit is contained in:
Brian Paul 2011-11-29 07:44:20 -07:00
parent 529fa77529
commit efcf5aa13f

View file

@ -195,7 +195,7 @@ update_array(struct gl_context *ctx,
}
if (ctx->Array.ArrayObj->VBOonly &&
ctx->Array.ArrayBufferObj->Name == 0) {
!_mesa_is_bufferobj(ctx->Array.ArrayBufferObj)) {
/* GL_ARB_vertex_array_object requires that all arrays reside in VBOs.
* Generate GL_INVALID_OPERATION if that's not true.
*/