render/vulkan: fix multiplication order for output color matrix

This had the same bug as the texture side, but I forgot to fix it.

See:
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4988#note_2867416

Fixes: f3524de980 ("render, render/vulkan: add primaries to wlr_buffer_pass_options")
This commit is contained in:
Simon Ser 2025-06-18 21:25:37 +02:00
parent 7b6eec530c
commit f5a0992686

View file

@ -219,7 +219,7 @@ static bool render_pass_submit(struct wlr_render_pass *wlr_pass) {
float xyz_to_dst_primaries[9];
matrix_invert(xyz_to_dst_primaries, dst_primaries_to_xyz);
wlr_matrix_multiply(matrix, srgb_to_xyz, xyz_to_dst_primaries);
wlr_matrix_multiply(matrix, xyz_to_dst_primaries, srgb_to_xyz);
} else {
wlr_matrix_identity(matrix);
}