From a3b85cfe9408645071431acaf6ba116676ff364d Mon Sep 17 00:00:00 2001 From: Themaister Date: Thu, 3 Jan 2013 01:24:29 +0100 Subject: [PATCH] Fix bug in TGA. --- gfx/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/image.c b/gfx/image.c index e4832a813b..a1bf53dd5e 100644 --- a/gfx/image.c +++ b/gfx/image.c @@ -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)