minimize the number of DIVs
authorDaniel Borca <dborca@users.sourceforge.net>
Mon, 26 Jan 2004 10:43:50 +0000 (10:43 +0000)
committerDaniel Borca <dborca@users.sourceforge.net>
Mon, 26 Jan 2004 10:43:50 +0000 (10:43 +0000)
src/mesa/main/texutil.c

index cf50da813ac4efc237f233a31de7b222f7063cca..40309d154c5d5f9eafa5866f71f17c66728e17e8 100644 (file)
@@ -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, *, / );                                      \
       }                                                                        \