From: Brian Paul Date: Mon, 3 Sep 2012 14:12:04 +0000 (-0600) Subject: mesa: add missing return statements after recording errors X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a31e090efb15ec34e7a1a5e707d600a11d74925;p=mesa.git mesa: add missing return statements after recording errors Reviewed-by: Kenneth Graunke Reviewed-by: Jose Fonseca --- 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) {