Merge pull request #31 from devnexen/fix_uninit

Vk_LoadPic uninitialized vars for 8 bits case.
This commit is contained in:
Denis Pauk 2022-11-13 19:25:06 +02:00 committed by GitHub
commit 8bd731b89c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -1148,6 +1148,9 @@ Vk_LoadPic(const char *name, byte *pic, int width, int realwidth,
if (type == it_skin && bits == 8) if (type == it_skin && bits == 8)
FloodFillSkin(pic, width, height); FloodFillSkin(pic, width, height);
upload_width = realwidth;
upload_height = realheight;
if (bits == 8) if (bits == 8)
{ {
// resize 8bit images only when we forced such logic // resize 8bit images only when we forced such logic

View File

@ -430,7 +430,7 @@ Vk_DrawParticles(int num_particles, const particle_t particles[], const unsigned
const particle_t *p; const particle_t *p;
int i; int i;
vec3_t up, right; vec3_t up, right;
byte color[4]; YQ2_ALIGNAS_TYPE(unsigned) byte color[4];
pvertex* currentvertex; pvertex* currentvertex;
if (!num_particles) if (!num_particles)