Fix bug in TGA.

This commit is contained in:
Themaister 2013-01-03 01:24:29 +01:00
parent e9cfb95900
commit a3b85cfe94

View File

@ -161,7 +161,7 @@ bool texture_image_load_argb_shift(const char *path, struct texture_image *out_i
uint32_t r = tmp[i * 4 + 2];
uint32_t a = tmp[i * 4 + 3];
out_img->pixels[i] = (0xff << a_shift) | (r << r_shift) | (g << g_shift) | (b << b_shift);
out_img->pixels[i] = (a << a_shift) | (r << r_shift) | (g << g_shift) | (b << b_shift);
}
}
else if (bits == 24)