swrast: init alpha value to 1.0 in opt_sample_rgb_2d()

(cherry picked from commit 6a0255122a)
This commit is contained in:
Brian Paul 2010-11-22 09:05:31 -07:00
parent 0d060d9933
commit 68afe8f685

View file

@ -1368,6 +1368,7 @@ opt_sample_rgb_2d(GLcontext *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;
}
}