summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-02-19 19:50:31 -0700
committerBrian Paul <[email protected]>2012-02-20 08:04:33 -0700
commite14b3573676af291669ee6ef4a295fc61a22c8d8 (patch)
tree4f0e7a9ce33eb91b97b842884f067ce6a05f4a8b
parente1044b40822cdda1fec39af5a64f332934f2e7ea (diff)
mesa: add missing return after _mesa_error() in update_array()
NOTE: This is a candidate for the 8.0 branch. Reviewed-by: José Fonseca <[email protected]>
-rw-r--r--src/mesa/main/varray.c1
1 files changed, 1 insertions, 0 deletions
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);