mesa: add missing return after _mesa_error() in update_array()

NOTE: This is a candidate for the 8.0 branch.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
(cherry picked from commit e14b357367)
This commit is contained in:
Brian Paul 2012-02-19 19:50:31 -07:00 committed by Ian Romanick
parent d342246e2b
commit 88cbc43d1f

View file

@ -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);