[vulkan] Fix a couple of minor issues

Magic number for compose descriptors and mistaken masking of vulkan
plist parse errors.
This commit is contained in:
Bill Currie 2021-04-18 20:41:08 +09:00
parent 52bfb0aeb0
commit 2918410b30
2 changed files with 3 additions and 3 deletions

View File

@ -986,8 +986,7 @@ parse_object (vulkan_ctx_t *ctx, memsuper_t *memsuper, plitem_t *plist,
if (!parser (0, plist, object, messages, &parsectx)) {
for (int i = 0; i < PL_A_NumObjects (messages); i++) {
Sys_MaskPrintf (SYS_vulkan_parse, "%s\n",
PL_String (PL_ObjectAtIndex (messages, i)));
Sys_Printf ("%s\n", PL_String (PL_ObjectAtIndex (messages, i)));
}
return 0;
}

View File

@ -88,7 +88,8 @@ Vulkan_Compose_Draw (vulkan_ctx_t *ctx)
= ctx->attachment_views->a[QFV_attachOpaque];
cframe->imageInfo[1].imageView
= ctx->attachment_views->a[QFV_attachTranslucent];
dfunc->vkUpdateDescriptorSets (device->dev, 2, cframe->descriptors, 0, 0);
dfunc->vkUpdateDescriptorSets (device->dev, COMPOSE_IMAGE_INFOS,
cframe->descriptors, 0, 0);
VkDescriptorSet sets[] = {
cframe->descriptors[0].dstSet,