mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-29 15:41:59 +00:00
[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:
parent
d673887bf1
commit
7a91c905e0
2 changed files with 4 additions and 0 deletions
|
@ -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) \
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue