From: Brian Paul Date: Mon, 20 Feb 2012 02:50:31 +0000 (-0700) Subject: mesa: add missing return after _mesa_error() in update_array() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e14b3573676af291669ee6ef4a295fc61a22c8d8;p=mesa.git mesa: add missing return after _mesa_error() in update_array() NOTE: This is a candidate for the 8.0 branch. Reviewed-by: José Fonseca --- 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);