swrast: init alpha value to 1.0 in opt_sample_rgb_2d()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user