From d0aaa5263be4e8219c3f28a496d4b4187d9c79d2 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 4 Sep 2003 15:14:09 +0000 Subject: [PATCH] since the tex data is rgba, /say/ it's rgba, not rgb :P --- libs/image/tga.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/image/tga.c b/libs/image/tga.c index f2cde49d6..cd87981df 100644 --- a/libs/image/tga.c +++ b/libs/image/tga.c @@ -515,7 +515,7 @@ decode_truecolor (TargaHeader *targa, tex_t *tex, byte *dataByte) switch (targa->pixel_size) { case 24: - tex->format = tex_rgb; + tex->format = tex_rgba; // image gets expadned to rgba decode_truecolor_24 (targa, tex, dataByte); break; case 32: @@ -534,7 +534,7 @@ decode_truecolor_rle (TargaHeader *targa, tex_t *tex, byte *dataByte) switch (targa->pixel_size) { case 24: - tex->format = tex_rgb; + tex->format = tex_rgba; // image gets expadned to rgba decode_truecolor_24_rle (targa, tex, dataByte); break; case 32: