Mesa (master): swrast: add missing break in clamp_rect_coord_linear()

Brian Paul brianp at kemper.freedesktop.org
Tue Apr 28 15:06:01 UTC 2009


Module: Mesa
Branch: master
Commit: dcf571aff9de1a4298c4d2c4148d84cdc4daf02e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=dcf571aff9de1a4298c4d2c4148d84cdc4daf02e

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Apr 28 09:05:19 2009 -0600

swrast: add missing break in clamp_rect_coord_linear()

See bug 21461.

---

 src/mesa/swrast/s_texfilter.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/mesa/swrast/s_texfilter.c b/src/mesa/swrast/s_texfilter.c
index a483023..31bfb5c 100644
--- a/src/mesa/swrast/s_texfilter.c
+++ b/src/mesa/swrast/s_texfilter.c
@@ -462,6 +462,7 @@ clamp_rect_coord_linear(GLenum wrapMode, GLfloat coord, GLint max,
       fcol -= 0.5F;
       i0 = IFLOOR(fcol);
       i1 = i0 + 1;
+      break;
    default:
       _mesa_problem(NULL, "bad wrapMode in clamp_rect_coord_linear");
       i0 = i1 = 0;




More information about the mesa-commit mailing list