mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-07 10:48:05 +02:00
gl-renderer: minor cosmetic changes to gl_renderer_output_create()
No behavior change, just some minor cosmetic changes. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
This commit is contained in:
parent
496718c9c4
commit
b4554fa2d7
1 changed files with 5 additions and 6 deletions
|
|
@ -4798,16 +4798,15 @@ gl_renderer_output_create(struct weston_output *output,
|
|||
const struct weston_geometry *area)
|
||||
{
|
||||
struct gl_output_state *go;
|
||||
struct gl_renderer *gr = get_renderer(output->compositor);
|
||||
const struct weston_testsuite_quirks *quirks;
|
||||
struct weston_compositor *wc = output->compositor;
|
||||
struct gl_renderer *gr = get_renderer(wc);
|
||||
const struct weston_testsuite_quirks *quirks = &wc->test_data.test_quirks;
|
||||
bool needs_fb_curves;
|
||||
bool needs_shadow;
|
||||
int i;
|
||||
|
||||
assert(!get_output_state(output));
|
||||
|
||||
quirks = &output->compositor->test_data.test_quirks;
|
||||
|
||||
go = zalloc(sizeof *go);
|
||||
if (go == NULL)
|
||||
return -1;
|
||||
|
|
@ -4835,7 +4834,7 @@ gl_renderer_output_create(struct weston_output *output,
|
|||
!output->from_blend_to_output_by_backend;
|
||||
|
||||
if (needs_fb_curves)
|
||||
weston_assert_true(gr->compositor, gl_features_has(gr, FEATURE_COLOR_TRANSFORMS));
|
||||
weston_assert_true(wc, gl_features_has(gr, FEATURE_COLOR_TRANSFORMS));
|
||||
|
||||
if (!needs_shadow && needs_fb_curves) {
|
||||
switch (quirks->blending_impl) {
|
||||
|
|
@ -4851,7 +4850,7 @@ gl_renderer_output_create(struct weston_output *output,
|
|||
weston_log("Error: quirks were used to force in-shader blending, "
|
||||
"but it's not supported by the GLES implementation.\n"
|
||||
"Quitting...\n");
|
||||
weston_compositor_exit_with_code(gr->compositor, RESULT_SKIP);
|
||||
weston_compositor_exit_with_code(wc, RESULT_SKIP);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue