From 1a9aa69ae85d7eb1baae1f2ee6af84d6fbd22de7 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 30 Jan 2018 10:11:49 -0700 Subject: 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 --- src/mesa/main/varray.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/mesa') 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) { -- cgit v1.2.3