mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-06-13 14:32:57 -04:00
Merge branch 'gles2-nv12-render-target' into 'master'
render: gles2: NV12 render buffers See merge request wlroots/wlroots!5344
This commit is contained in:
commit
d3d2d0f668
13 changed files with 394 additions and 63 deletions
|
|
@ -205,9 +205,21 @@ struct wlr_render_pass *wlr_output_begin_render_pass(struct wlr_output *output,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
struct wlr_buffer_pass_options opts = {0};
|
||||
if (render_options != NULL) {
|
||||
opts = *render_options;
|
||||
}
|
||||
if (state->committed & WLR_OUTPUT_STATE_COLOR_REPRESENTATION) {
|
||||
opts.color_encoding = state->color_encoding;
|
||||
opts.color_range = state->color_range;
|
||||
} else {
|
||||
opts.color_encoding = output->color_encoding;
|
||||
opts.color_range = output->color_range;
|
||||
}
|
||||
|
||||
struct wlr_renderer *renderer = output->renderer;
|
||||
assert(renderer != NULL);
|
||||
struct wlr_render_pass *pass = wlr_renderer_begin_buffer_pass(renderer, buffer, render_options);
|
||||
struct wlr_render_pass *pass = wlr_renderer_begin_buffer_pass(renderer, buffer, &opts);
|
||||
if (pass == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue