distribution/packages/emulators/standalone/vita3k-sa/patches/002-fix-curr_renderpass_info.patch

30 lines
1.2 KiB
Diff
Raw Normal View History

2023-08-31 22:16:59 +00:00
diff --git a/vita3k/renderer/src/vulkan/context.cpp b/vita3k/renderer/src/vulkan/context.cpp
index cbe8ff0acb..2d8d618e7d 100644
--- a/vita3k/renderer/src/vulkan/context.cpp
+++ b/vita3k/renderer/src/vulkan/context.cpp
2023-10-25 15:17:00 +00:00
@@ -247,21 +247,21 @@ void VKContext::start_render_pass(bool create_descriptor_set) {
2023-08-31 22:16:59 +00:00
if (!is_recording)
start_recording();
- curr_renderpass_info = {
+ curr_renderpass_info = vk::RenderPassBeginInfo{
.renderPass = current_render_pass,
.framebuffer = current_framebuffer
};
2023-10-25 15:17:00 +00:00
if (render_target->has_macroblock_sync && !ignore_macroblock) {
2023-08-31 22:16:59 +00:00
// set the render area to the correct macroblock
- curr_renderpass_info.renderArea = {
+ curr_renderpass_info.renderArea = vk::Rect2D{
.offset = {
last_macroblock_x * render_target->macroblock_width,
last_macroblock_y * render_target->macroblock_height },
.extent = { render_target->macroblock_width, render_target->macroblock_height }
};
} else {
- curr_renderpass_info.renderArea = {
+ curr_renderpass_info.renderArea = vk::Rect2D{
.offset = { 0, 0 },
.extent = { render_target->width, render_target->height }
};