mirror of
https://github.com/yquake2/ref_vk.git
synced 2025-02-17 01:22:13 +00:00
Merge pull request #31 from devnexen/fix_uninit
Vk_LoadPic uninitialized vars for 8 bits case.
This commit is contained in:
commit
8bd731b89c
2 changed files with 4 additions and 1 deletions
|
@ -1148,6 +1148,9 @@ Vk_LoadPic(const char *name, byte *pic, int width, int realwidth,
|
|||
if (type == it_skin && bits == 8)
|
||||
FloodFillSkin(pic, width, height);
|
||||
|
||||
upload_width = realwidth;
|
||||
upload_height = realheight;
|
||||
|
||||
if (bits == 8)
|
||||
{
|
||||
// resize 8bit images only when we forced such logic
|
||||
|
|
|
@ -430,7 +430,7 @@ Vk_DrawParticles(int num_particles, const particle_t particles[], const unsigned
|
|||
const particle_t *p;
|
||||
int i;
|
||||
vec3_t up, right;
|
||||
byte color[4];
|
||||
YQ2_ALIGNAS_TYPE(unsigned) byte color[4];
|
||||
pvertex* currentvertex;
|
||||
|
||||
if (!num_particles)
|
||||
|
|
Loading…
Reference in a new issue