summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/varray.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-11-29 07:44:20 -0700
committerBrian Paul <[email protected]>2011-11-30 06:57:38 -0700
commitefcf5aa13f2000eb3620a99f82043001db07e6b2 (patch)
tree3b290ddbd0be5014f63521e744c8be9ee7db5ca9 /src/mesa/main/varray.c
parent529fa775293ddd24e389f2ea6a43bd18f01a1609 (diff)
mesa: use _mesa_is_bufferobj() in update_array()
Diffstat (limited to 'src/mesa/main/varray.c')
-rw-r--r--src/mesa/main/varray.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c
index cfb0aa2a0c1..540e8963c81 100644
--- a/src/mesa/main/varray.c
+++ b/src/mesa/main/varray.c
@@ -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.
*/