Moved FRAC macro out of mmath.h into s_texture.c since it's only used there
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 12 Apr 2001 15:18:07 +0000 (15:18 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 12 Apr 2001 15:18:07 +0000 (15:18 +0000)
commit608889d18f78727753d63d0f867ec4d216e04c4c
tree3f1f30919e4d464a6e4a1f91ef2964b8e7a5e71b
parent93de8d3d8617e991c091f29236dc7316203a5b8d
Moved FRAC macro out of mmath.h into s_texture.c since it's only used there
and doesn't do what one might expect for negative values.
Reimplemented FRAC in terms of floor() to fix glitches seen in tests/texwrap.c.
Minor fix for problem with GL_CLAMP_TO_BORDER_ARB with GL_NEAREST sampling.
src/mesa/swrast/s_texture.c