projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
babe1fc
)
vbo: Don't bother checking for stride == 0 for "any varying in a VBO".
author
Eric Anholt
<eric@anholt.net>
Fri, 17 Jun 2011 20:16:45 +0000
(13:16 -0700)
committer
Eric Anholt
<eric@anholt.net>
Thu, 23 Jun 2011 20:43:17 +0000
(13:43 -0700)
We would still want to consider that data as being in a VBO even if we
managed to produce this case, which as far as I know we can't.
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/vbo/vbo_rebase.c
patch
|
blob
|
history
diff --git
a/src/mesa/vbo/vbo_rebase.c
b/src/mesa/vbo/vbo_rebase.c
index 9068ae240a6bae1361dc8e3ebbc1352825edc9e5..15e5895e95a97b8a1ca68f391acc37faa1fc3571 100644
(file)
--- a/
src/mesa/vbo/vbo_rebase.c
+++ b/
src/mesa/vbo/vbo_rebase.c
@@
-90,8
+90,7
@@
GLboolean vbo_any_varyings_in_vbos( const struct gl_client_array *arrays[] )
GLuint i;
for (i = 0; i < VERT_ATTRIB_MAX; i++)
- if (arrays[i]->StrideB &&
- arrays[i]->BufferObj->Name != 0)
+ if (arrays[i]->BufferObj->Name != 0)
return GL_TRUE;
return GL_FALSE;