util/matrix: Simplify matrix_projection

The transform argument is always passed WL_OUTPUT_TRANSFORM_FLIPPED_180
This commit is contained in:
Alexander Orzechowski 2025-01-27 13:48:07 -05:00
parent b6fec1b101
commit 51c07a662a
4 changed files with 7 additions and 20 deletions

View file

@ -1131,9 +1131,7 @@ struct wlr_vk_render_pass *vulkan_begin_render_pass(struct wlr_vk_renderer *rend
.maxDepth = 1,
});
// matrix_projection() assumes a GL coordinate system so we need
// to pass WL_OUTPUT_TRANSFORM_FLIPPED_180 to adjust it for vulkan.
matrix_projection(pass->projection, width, height, WL_OUTPUT_TRANSFORM_FLIPPED_180);
matrix_projection(pass->projection, width, height);
wlr_buffer_lock(buffer->wlr_buffer);
pass->render_buffer = buffer;