"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 f7b20490e7440b10d703bd5a35b49575aa8f5fd6..ce69eac83c7ab8d3846b8b4e87c3ed41b677cec7 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)