From e14b3573676af291669ee6ef4a295fc61a22c8d8 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sun, 19 Feb 2012 19:50:31 -0700 Subject: [PATCH] mesa: add missing return after _mesa_error() in update_array() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit NOTE: This is a candidate for the 8.0 branch. Reviewed-by: José Fonseca --- src/mesa/main/varray.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 77c1d7d9b27..dfe5064e3c0 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -185,6 +185,7 @@ update_array(struct gl_context *ctx, (type == GL_UNSIGNED_INT_2_10_10_10_REV || type == GL_INT_2_10_10_10_REV) && size != 4) { _mesa_error(ctx, GL_INVALID_OPERATION, "%s(size=%d)", func, size); + return; } ASSERT(size <= 4); -- 2.30.2