[vulkan] Use correct index for pl item setup

Due to a typo in the list of extra property list items to add to the
symbol table (corrected), subsequent symbols were pointing to the wrong
memory address.
This commit is contained in:
Bill Currie 2023-02-27 15:00:40 +09:00
parent 3700321c5d
commit fdcd972ff9

View file

@ -2259,7 +2259,7 @@ QFV_CreateSymtab (plitem_t *dict, const char *properties,
symtab->symbols[num_keys + j] = (exprsym_t) { symtab->symbols[num_keys + j] = (exprsym_t) {
.name = extra_items[i], .name = extra_items[i],
.type = &cexpr_plitem, .type = &cexpr_plitem,
.value = items + num_keys + i, .value = items + num_keys + j,
}; };
items[num_keys + j] = val; items[num_keys + j] = val;
j++; j++;
@ -2305,7 +2305,7 @@ QFV_ParseRenderInfo (vulkan_ctx_t *ctx, plitem_t *item, qfv_renderctx_t *rctx)
static const char *extra_items[] = { static const char *extra_items[] = {
"images", "images",
"view", "views",
"renderpasses", "renderpasses",
0 0
}; };