mirror of https://github.com/yquake2/ref_vk.git
Merge pull request #31 from devnexen/fix_uninit
Vk_LoadPic uninitialized vars for 8 bits case.
This commit is contained in:
commit
8bd731b89c
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue