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