mesa: remove invalid assertion in _mesa_enable_vertex_array_attrib()
authorBrian Paul <brianp@vmware.com>
Tue, 30 Jan 2018 17:11:49 +0000 (10:11 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 30 Jan 2018 18:02:43 +0000 (11:02 -0700)
The meta module passes some 0-based attrib values.  Should fix Piglit
regressions reported by Mark Janes.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104863
Fixes: 4ab7e03e1fc7ac ("mesa: add an assertion in
_mesa_enable_vertex_array_attrib()")
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/mesa/main/varray.c

index b2783e24b49dd24d1319cd3d3ef2cf38243064e9..bc0afa6bcf5398bfd995e91312eaeec282c73b18 100644 (file)
@@ -1065,7 +1065,6 @@ _mesa_enable_vertex_array_attrib(struct gl_context *ctx,
                                  struct gl_vertex_array_object *vao,
                                  gl_vert_attrib attrib)
 {
-   assert(attrib >= VERT_ATTRIB_GENERIC0);
    assert(attrib < ARRAY_SIZE(vao->VertexAttrib));
 
    if (!vao->VertexAttrib[attrib].Enabled) {