aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-06-07 21:30:35 +0200
committerSimon Ser <contact@emersion.fr>2023-06-07 21:30:35 +0200
commit150a88bd03c5ee802edd94326ef391dd0b4f5ac1 (patch)
tree5e1a4dbc71f86a13448f249c4d70d9480277aa56
parentfd9e4b860fa8a742dfd4c67f1d546ab71a5b8fda (diff)
render/vulkan: fix blend subpass matrix
renderer->render_{width,height} are unused with the render pass API.
-rw-r--r--render/vulkan/pass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/render/vulkan/pass.c b/render/vulkan/pass.c
index 73ab8a3c..0fb8ea50 100644
--- a/render/vulkan/pass.c
+++ b/render/vulkan/pass.c
@@ -83,8 +83,8 @@ static bool render_pass_submit(struct wlr_render_pass *wlr_pass) {
vkCmdNextSubpass(render_cb->vk, VK_SUBPASS_CONTENTS_INLINE);
float final_matrix[9] = {
- renderer->render_width, 0, -1,
- 0, renderer->render_height, -1,
+ pass->render_buffer->wlr_buffer->width, 0, -1,
+ 0, pass->render_buffer->wlr_buffer->height, -1,
0, 0, 0,
};
struct wlr_vk_vert_pcr_data vert_pcr_data = {