OSDN Git Service

"const int _nc" was really stupid...
authorDaniel Borca <dborca@users.sourceforge.net>
Thu, 19 Aug 2004 06:58:00 +0000 (06:58 +0000)
committerDaniel Borca <dborca@users.sourceforge.net>
Thu, 19 Aug 2004 06:58:00 +0000 (06:58 +0000)
src/mesa/drivers/glide/fxddspan.c

index f7b2049..ce69eac 100644 (file)
 
 #define HW_WRITE_CLIPLOOP()                                            \
     do {                                                               \
-       const int _nc = 1; /* numcliprects */                           \
        /* [dBorca] Hack alert: */                                      \
        /* remember, we need to flip the scissor, too */                \
        /* is it better to do it inside fxDDScissor? */                 \
-       while (_nc--) {                                                 \
-           const int minx = fxMesa->clipMinX;                          \
-           const int maxy = Y_FLIP(fxMesa->clipMinY);                  \
-           const int maxx = fxMesa->clipMaxX;                          \
-           const int miny = Y_FLIP(fxMesa->clipMaxY);
+       const int minx = fxMesa->clipMinX;                              \
+       const int maxy = Y_FLIP(fxMesa->clipMinY);                      \
+       const int maxx = fxMesa->clipMaxX;                              \
+       const int miny = Y_FLIP(fxMesa->clipMaxY);
 
 #define HW_READ_CLIPLOOP()                                             \
     do {                                                               \
-       const int _nc = 1; /* numcliprects */                           \
        /* [dBorca] Hack alert: */                                      \
        /* remember, we need to flip the scissor, too */                \
        /* is it better to do it inside fxDDScissor? */                 \
-       while (_nc--) {                                                 \
-           const int minx = fxMesa->clipMinX;                          \
-           const int maxy = Y_FLIP(fxMesa->clipMinY);                  \
-           const int maxx = fxMesa->clipMaxX;                          \
-           const int miny = Y_FLIP(fxMesa->clipMaxY);
+       const int minx = fxMesa->clipMinX;                              \
+       const int maxy = Y_FLIP(fxMesa->clipMinY);                      \
+       const int maxx = fxMesa->clipMaxX;                              \
+       const int miny = Y_FLIP(fxMesa->clipMaxY);
 
 #define HW_ENDCLIPLOOP()                                               \
-       }                                                               \
     } while (0)