From fa775c6e3067960dec7412e4d7eb9f27177866b9 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 21 Mar 2003 06:08:57 +0000 Subject: [PATCH] oops, missed a case --- libs/util/tga.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/util/tga.c b/libs/util/tga.c index 33828d5d9..eccc91f24 100644 --- a/libs/util/tga.c +++ b/libs/util/tga.c @@ -591,6 +591,8 @@ decode_greyscale_rle (TargaHeader *targa, tex_t *tex, byte *dataByte) int column, columns, rows, span; cmap_t *cmap = 0; // not really used but needed for rle_expand + dataByte = skip_colormap (targa, dataByte); + if (targa->pixel_size != 8) Sys_Error ("LoadTGA: unsupported truecolor pixel size"); tex->format = tex_la;