SIMD Convert. fix RGBa → RGBA conversion on AVX2

This commit is contained in:
homm 2016-08-16 15:22:54 +02:00 committed by Alexander Karpinsky
parent f888dbe1cc
commit 95a68340c9

View File

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