projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
529fa77
)
mesa: use _mesa_is_bufferobj() in update_array()
author
Brian Paul
<brianp@vmware.com>
Tue, 29 Nov 2011 14:44:20 +0000
(07:44 -0700)
committer
Brian Paul
<brianp@vmware.com>
Wed, 30 Nov 2011 13:57:38 +0000
(06:57 -0700)
src/mesa/main/varray.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/varray.c
b/src/mesa/main/varray.c
index cfb0aa2a0c10f03235eb151aa1138c62304d9712..540e8963c814129fbfb8876c132b30c832d0dc37 100644
(file)
--- 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.
*/