Selaa lähdekoodia

minimize the number of DIVs

tags/R300_DRIVER_0
Daniel Borca 22 vuotta sitten
vanhempi
commit
5d3568f36c
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3
    3
      src/mesa/main/texutil.c

+ 3
- 3
src/mesa/main/texutil.c Näytä tiedosto

@@ -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, *, / ); \
} \

Loading…
Peruuta
Tallenna