summaryrefslogtreecommitdiff
path: root/src/vk/graphics_pipeline_2d_solid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vk/graphics_pipeline_2d_solid.cpp')
-rw-r--r--src/vk/graphics_pipeline_2d_solid.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/vk/graphics_pipeline_2d_solid.cpp b/src/vk/graphics_pipeline_2d_solid.cpp
index d7f2b17..8432a8a 100644
--- a/src/vk/graphics_pipeline_2d_solid.cpp
+++ b/src/vk/graphics_pipeline_2d_solid.cpp
@@ -39,8 +39,7 @@ load_framebuffer(void *obj)
VkFramebufferCreateInfo framebuffer_info{};
framebuffer_info.sType = VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO;
- framebuffer_info.renderPass =
- cg_core.vk_graphics_pipeline_2d_solid_layout->render_pass;
+ framebuffer_info.renderPass = cg_core.vk_render_pass->pipeline_2d;
framebuffer_info.attachmentCount = attachments.size();
framebuffer_info.pAttachments = attachments.data();
framebuffer_info.width = cg_core.display_width;
@@ -232,8 +231,7 @@ load_pipeline(void *obj)
pipeline_info.pDynamicState = &dynamic_state_info;
pipeline_info.layout =
cg_core.vk_graphics_pipeline_2d_solid_layout->pipeline;
- pipeline_info.renderPass =
- cg_core.vk_graphics_pipeline_2d_solid_layout->render_pass;
+ pipeline_info.renderPass = cg_core.vk_render_pass->pipeline_2d;
pipeline_info.subpass = 0;
pipeline_info.basePipelineHandle = VK_NULL_HANDLE;
pipeline_info.basePipelineIndex = -1;