diff options
author | Brian Paul <[email protected]> | 2002-10-18 13:40:59 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-10-18 13:40:59 +0000 |
commit | 6ac04f2fc6e9a5448691df59495d680ddcc740c8 (patch) | |
tree | 4f183ca01810fe9d44788cc747efec5abc250b23 /src/mesa/swrast | |
parent | 6e1ceff48b079d35fe48810aed657ac2fa0cba97 (diff) |
fix bug in GL_MIRRORED_REPEAT_ARB (Ian Romanick)
Diffstat (limited to 'src/mesa/swrast')
-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 c5dc960db92..b415bf92e2e 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.69 2002/10/04 23:10:06 kschultz Exp $ */ +/* $Id: s_texture.c,v 1.70 2002/10/18 13:40:59 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -97,6 +97,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) \ |