summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/eval.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-09-03 08:12:04 -0600
committerBrian Paul <[email protected]>2012-09-03 18:07:41 -0600
commit9a31e090efb15ec34e7a1a5e707d600a11d74925 (patch)
tree610f221251c2f58c9eeacc18dfa2f36a06164a85 /src/mesa/main/eval.c
parent2ffc7fd2d2cbb1e895ceb8afd12e7c4a2dc3050f (diff)
mesa: add missing return statements after recording errors
Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/mesa/main/eval.c')
-rw-r--r--src/mesa/main/eval.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/eval.c b/src/mesa/main/eval.c
index 77092171b46..487c4ce04d9 100644
--- a/src/mesa/main/eval.c
+++ b/src/mesa/main/eval.c
@@ -384,6 +384,7 @@ map1(GLenum target, GLfloat u1, GLfloat u2, GLint ustride,
k = _mesa_evaluator_components( target );
if (k == 0) {
_mesa_error( ctx, GL_INVALID_ENUM, "glMap1(target)" );
+ return;
}
if (ustride < k) {
@@ -473,6 +474,7 @@ map2( GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder,
k = _mesa_evaluator_components( target );
if (k==0) {
_mesa_error( ctx, GL_INVALID_ENUM, "glMap2(target)" );
+ return;
}
if (ustride < k) {