diff options
author | Patrice Mandin <pmandin@freedesktop.org> | 2006-09-08 21:30:32 +0000 |
---|---|---|
committer | Patrice Mandin <pmandin@freedesktop.org> | 2006-09-08 21:30:32 +0000 |
commit | 07d4c63ddc39a41c1048bd92c41b22b8c11712f3 (patch) | |
tree | 63cb1c33b81ab0dc7cefd7bab6808b96ce49da14 | |
parent | ad0f65537695492a6651857d59d7bad27bae6c8b (diff) |
vert_copy_spec macro
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nv10_swtcl.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nv10_swtcl.c b/src/mesa/drivers/dri/nouveau/nv10_swtcl.c index 7f3d275c40..75b35271f6 100644 --- a/src/mesa/drivers/dri/nouveau/nv10_swtcl.c +++ b/src/mesa/drivers/dri/nouveau/nv10_swtcl.c @@ -286,9 +286,11 @@ static struct { #define VERT_COPY_SPEC( v0, v1 ) \ do { \ if (specoffset) { \ - v0->f[specoffset][0] = v1->f[specoffset][0]; \ - v0->f[specoffset][1] = v1->f[specoffset][1]; \ - v0->f[specoffset][2] = v1->f[specoffset][2]; \ + nouveau_color_t *spec0 = (nouveau_color_t *)&((v0)->ui[specoffset]); \ + nouveau_color_t *spec1 = (nouveau_color_t *)&((v1)->ui[specoffset]); \ + spec0->red = spec1->red; \ + spec0->green = spec1->green; \ + spec0->blue = spec1->blue; \ } \ } while (0) |