vert_copy_rgba macro
authorPatrice Mandin <pmandin@freedesktop.org>
Fri, 8 Sep 2006 21:27:17 +0000 (21:27 +0000)
committerPatrice Mandin <pmandin@freedesktop.org>
Fri, 8 Sep 2006 21:27:17 +0000 (21:27 +0000)
src/mesa/drivers/dri/nouveau/nv10_swtcl.c

index bbd674855cc0d43fe150d8f3e4297e09b2b45546..7f3d275c402d706e83834c0d422dc5ad01fc9cfd 100644 (file)
@@ -272,15 +272,7 @@ static struct {
                color->alpha=(c)[3];                                    \
        } while (0)
 
-#define VERT_COPY_RGBA( v0, v1 )                                       \
-       do {                                                            \
-               if (coloroffset) {                                      \
-                       v0->f[coloroffset][0] = v1->f[coloroffset][0];  \
-                       v0->f[coloroffset][1] = v1->f[coloroffset][1];  \
-                       v0->f[coloroffset][2] = v1->f[coloroffset][2];  \
-                       v0->f[coloroffset][3] = v1->f[coloroffset][3];  \
-               }                                                       \
-       } while (0)
+#define VERT_COPY_RGBA( v0, v1 ) v0->ui[coloroffset] = v1->ui[coloroffset]
 
 #define VERT_SET_SPEC( v, c )                                                  \
        do {                                                                    \