mirror of
https://github.com/yquake2/ref_vk.git
synced 2024-11-10 06:41:45 +00:00
Vk_LoadPic fix unitialized var.
R_MarkLeaves data alignment to int when merging PVS clusters like GL renderers.
This commit is contained in:
parent
8bd731b89c
commit
44ab39c57c
2 changed files with 2 additions and 1 deletions
|
@ -1135,6 +1135,7 @@ Vk_LoadPic(const char *name, byte *pic, int width, int realwidth,
|
||||||
image->registration_sequence = registration_sequence;
|
image->registration_sequence = registration_sequence;
|
||||||
// zero-clear Vulkan texture handle
|
// zero-clear Vulkan texture handle
|
||||||
QVVKTEXTURE_CLEAR(image->vk_texture);
|
QVVKTEXTURE_CLEAR(image->vk_texture);
|
||||||
|
texBuffer = 0;
|
||||||
image->width = realwidth;
|
image->width = realwidth;
|
||||||
image->height = realheight;
|
image->height = realheight;
|
||||||
image->type = type;
|
image->type = type;
|
||||||
|
|
|
@ -980,7 +980,7 @@ cluster
|
||||||
void R_MarkLeaves (void)
|
void R_MarkLeaves (void)
|
||||||
{
|
{
|
||||||
const byte *vis;
|
const byte *vis;
|
||||||
byte fatvis[MAX_MAP_LEAFS/8];
|
YQ2_ALIGNAS_TYPE(int) byte fatvis[MAX_MAP_LEAFS/8];
|
||||||
mnode_t *node;
|
mnode_t *node;
|
||||||
int i;
|
int i;
|
||||||
mleaf_t *leaf;
|
mleaf_t *leaf;
|
||||||
|
|
Loading…
Reference in a new issue