Browse Source

engine: imagelib: img_bmp: fully initialize local palette array

pull/2/head
Alibek Omarov 2 years ago
parent
commit
aac0be1ab3
  1. 2
      engine/common/imagelib/img_bmp.c

2
engine/common/imagelib/img_bmp.c

@ -25,7 +25,7 @@ Image_LoadBMP
qboolean Image_LoadBMP( const char *name, const byte *buffer, fs_offset_t filesize ) qboolean Image_LoadBMP( const char *name, const byte *buffer, fs_offset_t filesize )
{ {
byte *buf_p, *pixbuf; byte *buf_p, *pixbuf;
rgba_t palette[256]; rgba_t palette[256] = { 0 };
int i, columns, column, rows, row, bpp = 1; int i, columns, column, rows, row, bpp = 1;
int cbPalBytes = 0, padSize = 0, bps = 0; int cbPalBytes = 0, padSize = 0, bps = 0;
int reflectivity[3] = { 0, 0, 0 }; int reflectivity[3] = { 0, 0, 0 };

Loading…
Cancel
Save