From: Brian Paul Date: Tue, 30 Jan 2018 17:11:49 +0000 (-0700) Subject: mesa: remove invalid assertion in _mesa_enable_vertex_array_attrib() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1a9aa69ae85d7eb1baae1f2ee6af84d6fbd22de7;p=mesa.git mesa: remove invalid assertion in _mesa_enable_vertex_array_attrib() 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 --- diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index b2783e24b49..bc0afa6bcf5 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -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) {