Mesa (master): mesa: use _mesa_is_bufferobj() in update_array()

Brian Paul brianp at kemper.freedesktop.org
Wed Nov 30 14:21:18 UTC 2011


Module: Mesa
Branch: master
Commit: efcf5aa13f2000eb3620a99f82043001db07e6b2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=efcf5aa13f2000eb3620a99f82043001db07e6b2

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Nov 29 07:44:20 2011 -0700

mesa: use _mesa_is_bufferobj() in update_array()

---

 src/mesa/main/varray.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c
index cfb0aa2..540e896 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.
        */




More information about the mesa-commit mailing list