From 520397d93ed25e64782252c0a98cefaa4a50324b Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sun, 26 Jun 2022 14:15:32 +0300 Subject: [PATCH] image.c: targa_header needn't be global. as noticed in vkQuake. --- Quake/image.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Quake/image.c b/Quake/image.c index 51e0427b..afab6d73 100644 --- a/Quake/image.c +++ b/Quake/image.c @@ -109,9 +109,7 @@ typedef struct targaheader_s { unsigned char pixel_size, attributes; } targaheader_t; -#define TARGAHEADERSIZE 18 //size on disk - -targaheader_t targa_header; +#define TARGAHEADERSIZE 18 /* size on disk */ int fgetLittleShort (FILE *f) { @@ -197,6 +195,7 @@ byte *Image_LoadTGA (FILE *fin, int *width, int *height) int realrow; //johnfitz -- fix for upside-down targas qboolean upside_down; //johnfitz -- fix for upside-down targas stdio_buffer_t *buf; + targaheader_t targa_header; targa_header.id_length = fgetc(fin); targa_header.colormap_type = fgetc(fin);