fix RGBa → RGBA conversion on AVX2

This commit is contained in:
homm 2016-08-16 15:22:54 +02:00 committed by Alexander
parent a880dd08e9
commit a92659f65c

View File

@ -583,6 +583,9 @@ rgba2rgbA(UINT8* out, const UINT8* in, int xsize)
#endif #endif
in = &in[x * 4];
out = &out[x * 4];
for (; x < xsize; x++, in += 4) { for (; x < xsize; x++, in += 4) {
alpha = in[3]; alpha = in[3];
if (alpha == 255 || alpha == 0) { if (alpha == 255 || alpha == 0) {