mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
render/vulkan: use output_pipe_srgb for non-NULL sRGB color transform
This commit is contained in:
parent
2ea0e386c4
commit
30c6efedf1
1 changed files with 1 additions and 1 deletions
|
|
@ -198,7 +198,7 @@ static bool render_pass_submit(struct wlr_render_pass *wlr_pass) {
|
||||||
.lut_3d_scale = (float)(dim - 1) / dim,
|
.lut_3d_scale = (float)(dim - 1) / dim,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (pass->color_transform) {
|
if (pass->color_transform && pass->color_transform->type != COLOR_TRANSFORM_SRGB) {
|
||||||
bind_pipeline(pass, render_buffer->plain.render_setup->output_pipe_lut3d);
|
bind_pipeline(pass, render_buffer->plain.render_setup->output_pipe_lut3d);
|
||||||
} else {
|
} else {
|
||||||
bind_pipeline(pass, render_buffer->plain.render_setup->output_pipe_srgb);
|
bind_pipeline(pass, render_buffer->plain.render_setup->output_pipe_srgb);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue