[vulkan] Fix broken line drawing

Line drawing was broken with the 2d depth pass (which will go away in
the end, but I like the organization of the draw code).
This commit is contained in:
Bill Currie 2022-11-25 11:12:05 +09:00
parent d673887bf1
commit 7a91c905e0
2 changed files with 4 additions and 0 deletions

View file

@ -449,6 +449,8 @@ vkshader_c = \
$(sprite_gbuff_c) \
$(sprite_depthv_c) \
$(sprite_depthf_c) \
$(twodv_c) \
$(twodf_c) \
$(twod_depthf_c) \
$(quakebspv_c) \
$(quakebspf_c) \

View file

@ -1292,6 +1292,8 @@ draw_lines (qfv_renderframe_t *rFrame, VkCommandBuffer cmd)
VkPipelineLayout layout = dctx->layout;
dfunc->vkCmdBindDescriptorSets (cmd, VK_PIPELINE_BIND_POINT_GRAPHICS,
layout, 0, 1, set, 0, 0);
dfunc->vkCmdDraw (cmd, dframe->line_verts.count * VERTS_PER_LINE,
1, 0, 0);
}
void