diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2002-10-18 13:41:22 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2002-10-18 13:41:22 +0000 |
commit | 84aedaafc055f8d2c7f403c007aca848f611ddf9 (patch) | |
tree | 2f9746f140f563eb2a090a141731b69f7954c99e | |
parent | 7e158215a9116465ac4de52789121955c0597b30 (diff) |
fix bug in GL_MIRRORED_REPEAT_ARB (Ian Romanick)
-rw-r--r-- | src/mesa/swrast/s_texture.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_texture.c b/src/mesa/swrast/s_texture.c index 3a1f3d365e..cbee9d4243 100644 --- a/src/mesa/swrast/s_texture.c +++ b/src/mesa/swrast/s_texture.c @@ -1,4 +1,4 @@ -/* $Id: s_texture.c,v 1.41.2.9 2002/09/23 16:39:45 brianp Exp $ */ +/* $Id: s_texture.c,v 1.41.2.10 2002/10/18 13:41:22 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -98,6 +98,7 @@ U = 1.0F - (S - (GLfloat) flr); /* flr is odd */ \ else \ U = S - (GLfloat) flr; /* flr is even */ \ + U = (U * SIZE) - 0.5; \ I0 = IFLOOR(U); \ I1 = I0 + 1; \ if (I0 < 0) \ |