gl-renderer: move gl_renderer_send_shader_error() upwards

A future change will call this function from draw_view(), so move it
upwards to avoid adding a function declaration.

No functional or even cosmetic change.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
dev
Pekka Paalanen 4 years ago committed by Pekka Paalanen
parent 9f428a633c
commit 6e45fcc999
  1. 26
      libweston/renderer-gl/gl-renderer.c

@ -703,6 +703,19 @@ gl_fbo_texture_fini(struct gl_fbo_texture *fbotex)
fbotex->tex = 0; fbotex->tex = 0;
} }
static void
gl_renderer_send_shader_error(struct weston_view *view)
{
struct wl_resource *resource = view->surface->resource;
if (!resource)
return;
wl_client_post_implementation_error(wl_resource_get_client(resource),
"Weston GL-renderer shader failed for wl_surface@%u",
wl_resource_get_id(resource));
}
static const struct gl_shader_requirements requirements_triangle_fan = { static const struct gl_shader_requirements requirements_triangle_fan = {
.variant = SHADER_VARIANT_SOLID, .variant = SHADER_VARIANT_SOLID,
}; };
@ -821,19 +834,6 @@ use_output(struct weston_output *output)
return 0; return 0;
} }
static void
gl_renderer_send_shader_error(struct weston_view *view)
{
struct wl_resource *resource = view->surface->resource;
if (!resource)
return;
wl_client_post_implementation_error(wl_resource_get_client(resource),
"Weston GL-renderer shader failed for wl_surface@%u",
wl_resource_get_id(resource));
}
static void static void
gl_renderer_use_program_with_view_uniforms(struct gl_renderer *gr, gl_renderer_use_program_with_view_uniforms(struct gl_renderer *gr,
struct gl_shader **shaderp, struct gl_shader **shaderp,

Loading…
Cancel
Save