vbo: Don't bother checking for stride == 0 for "any varying in a VBO".
authorEric Anholt <eric@anholt.net>
Fri, 17 Jun 2011 20:16:45 +0000 (13:16 -0700)
committerEric 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

index 9068ae2..15e5895 100644 (file)
@@ -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;