summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorDaniel Borca <[email protected]>2004-01-26 10:43:50 +0000
committerDaniel Borca <[email protected]>2004-01-26 10:43:50 +0000
commit5d3568f36cbd58210914706fb07dc822adbdd6a9 (patch)
tree9992cf6cb3e5525dacb6fc2dadbffc352659dd8c /src/mesa
parent8d2cfa9ea0bdc56458567707685faed5dbc49076 (diff)
minimize the number of DIVs
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/texutil.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/texutil.c b/src/mesa/main/texutil.c
index cf50da813ac..40309d154c5 100644
--- a/src/mesa/main/texutil.c
+++ b/src/mesa/main/texutil.c
@@ -993,9 +993,9 @@ do { \
const TYPE *src = (const TYPE *)srcImage; \
TYPE *dst = (TYPE *)dstImage; \
\
- if ( srcHeight <= dstHeight ) { \
+ if ( srcHeight < dstHeight ) { \
const GLint hScale = dstHeight / srcHeight; \
- if ( srcWidth <= dstWidth ) { \
+ if ( srcWidth < dstWidth ) { \
const GLint wScale = dstWidth / srcWidth; \
INNER_LOOP( TYPE, /, / ); \
} \
@@ -1006,7 +1006,7 @@ do { \
} \
else { \
const GLint hScale = srcHeight / dstHeight; \
- if ( srcWidth <= dstWidth ) { \
+ if ( srcWidth < dstWidth ) { \
const GLint wScale = dstWidth / srcWidth; \
INNER_LOOP( TYPE, *, / ); \
} \