diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2008-09-13 14:23:39 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-09-13 14:26:18 -0600 |
commit | 463d19d477058ba176fa7397f3cf473e7688bd3d (patch) | |
tree | 3eef66a8c3bcb3954016046db7976b478a613a64 /src | |
parent | 6e4fd90ca5586bd5f303d246bd563d4236bf808e (diff) |
mesa: return after _mesa_problem() calls
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/texformat_tmp.h | 1 | ||||
-rw-r--r-- | src/mesa/swrast/s_texfilter.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/texformat_tmp.h b/src/mesa/main/texformat_tmp.h index 63939f4011..7499ba7b36 100644 --- a/src/mesa/main/texformat_tmp.h +++ b/src/mesa/main/texformat_tmp.h @@ -1117,6 +1117,7 @@ static void FETCH(ci8)( const struct gl_texture_image *texImage, break;; default: _mesa_problem(ctx, "Bad palette format in fetch_texel_ci8"); + return; } #if CHAN_TYPE == GL_UNSIGNED_BYTE COPY_4UBV(texel, texelUB); diff --git a/src/mesa/swrast/s_texfilter.c b/src/mesa/swrast/s_texfilter.c index c9e9db132f..ee6131649a 100644 --- a/src/mesa/swrast/s_texfilter.c +++ b/src/mesa/swrast/s_texfilter.c @@ -342,6 +342,7 @@ lerp_rgba_3d(GLchan result[4], GLfloat a, GLfloat b, GLfloat c, break; \ default: \ _mesa_problem(ctx, "Bad wrap mode"); \ + return; \ } \ } @@ -462,6 +463,7 @@ lerp_rgba_3d(GLchan result[4], GLfloat a, GLfloat b, GLfloat c, break; \ default: \ _mesa_problem(ctx, "Bad wrap mode"); \ + return; \ } \ } |