mesa: use _mesa_is_bufferobj() in update_array()
authorBrian Paul <brianp@vmware.com>
Tue, 29 Nov 2011 14:44:20 +0000 (07:44 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 30 Nov 2011 13:57:38 +0000 (06:57 -0700)
src/mesa/main/varray.c

index cfb0aa2a0c10f03235eb151aa1138c62304d9712..540e8963c814129fbfb8876c132b30c832d0dc37 100644 (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.
        */