summaryrefslogtreecommitdiff
path: root/src/mesa/swrast
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-02-09 12:43:09 -0700
committerBrian Paul <brianp@vmware.com>2009-02-09 14:00:47 -0700
commit88f3656ea7ae57d22141225db0c5d90ceab420dd (patch)
treebc8edc591bee3dcc4ff880fbbb29486e92ea3b5b /src/mesa/swrast
parent7eb5a2892d3d89f4b1800311babb40af1ec7d4e5 (diff)
swrast: use ASSIGN_4V() macro
Diffstat (limited to 'src/mesa/swrast')
-rw-r--r--src/mesa/swrast/s_fragprog.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesa/swrast/s_fragprog.c b/src/mesa/swrast/s_fragprog.c
index bbb784c46e..c6601f5593 100644
--- a/src/mesa/swrast/s_fragprog.c
+++ b/src/mesa/swrast/s_fragprog.c
@@ -84,8 +84,7 @@ fetch_texel_lod( GLcontext *ctx, const GLfloat texcoord[4], GLfloat lambda,
swizzle_texel(rgba, color, texObj->_Swizzle);
}
else {
- color[0] = color[1] = color[2] = 0.0F;
- color[3] = 1.0F;
+ ASSIGN_4V(color, 0.0F, 0.0F, 0.0F, 1.0F);
}
}
@@ -127,8 +126,7 @@ fetch_texel_deriv( GLcontext *ctx, const GLfloat texcoord[4],
swizzle_texel(rgba, color, texObj->_Swizzle);
}
else {
- color[0] = color[1] = color[2] = 0.0F;
- color[3] = 1.0F;
+ ASSIGN_4V(color, 0.0F, 0.0F, 0.0F, 1.0F);
}
}