swrast: use ASSIGN_4V() macro
authorBrian Paul <brianp@vmware.com>
Mon, 9 Feb 2009 19:43:09 +0000 (12:43 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 9 Feb 2009 21:00:47 +0000 (14:00 -0700)
src/mesa/swrast/s_fragprog.c

index bbb784c46e861c187e47e2d7517c33774401a272..c6601f5593d691840ee6bc955bf3d5b860cee9d9 100644 (file)
@@ -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);
    }
 }