From ed337b3ecc2a73dc3e142ca335747a3ebf02f5ca Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Mon, 21 Oct 2019 08:44:07 -0400 Subject: [PATCH] - fixed: Made "Col2RGB8_2" a global variable, since "Col2RGB8_LessPrecision[]" references it by pointer. --- src/r_data/v_palette.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_data/v_palette.cpp b/src/r_data/v_palette.cpp index d24163fb90..1a6c25b255 100644 --- a/src/r_data/v_palette.cpp +++ b/src/r_data/v_palette.cpp @@ -52,6 +52,7 @@ uint32_t Col2RGB8[65][256]; uint32_t *Col2RGB8_LessPrecision[65]; uint32_t Col2RGB8_Inverse[65][256]; +uint32_t Col2RGB8_2[63][256]; // this array's second dimension is called up by pointer as Col2RGB8_LessPrecision[] elsewhere. ColorTable32k RGB32k; ColorTable256k RGB256k; @@ -321,7 +322,6 @@ void ReadPalette(int lumpnum, uint8_t *buffer) static void BuildTransTable (const PalEntry *palette) { int r, g, b; - static uint32_t Col2RGB8_2[63][256]; // create the RGB555 lookup table for (r = 0; r < 32; r++)