swrast: init alpha value to 1.0 in opt_sample_rgb_2d()

This commit is contained in:
Brian Paul 2010-11-22 09:04:13 -07:00
parent 9aa089eac0
commit 6a0255122a

View file

@ -1371,6 +1371,7 @@ opt_sample_rgb_2d(struct gl_context *ctx,
rgba[k][RCOMP] = UBYTE_TO_FLOAT(texel[2]);
rgba[k][GCOMP] = UBYTE_TO_FLOAT(texel[1]);
rgba[k][BCOMP] = UBYTE_TO_FLOAT(texel[0]);
rgba[k][ACOMP] = 1.0F;
}
}