Skip to content
Permalink
Browse files

- fixed: Made "Col2RGB8_2" a global variable, since "Col2RGB8_LessPre…

…cision[]" references it by pointer.
  • Loading branch information...
madame-rachelle committed Oct 21, 2019
1 parent 0c712f2 commit ed337b3ecc2a73dc3e142ca335747a3ebf02f5ca
Showing with 1 addition and 1 deletion.
  1. +1 −1 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++)

0 comments on commit ed337b3

Please sign in to comment.
You can’t perform that action at this time.