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>
This commit is contained in:
parent
9f428a633c
commit
6e45fcc999
@ -703,6 +703,19 @@ gl_fbo_texture_fini(struct gl_fbo_texture *fbotex)
|
||||
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 = {
|
||||
.variant = SHADER_VARIANT_SOLID,
|
||||
};
|
||||
@ -821,19 +834,6 @@ use_output(struct weston_output *output)
|
||||
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
|
||||
gl_renderer_use_program_with_view_uniforms(struct gl_renderer *gr,
|
||||
struct gl_shader **shaderp,
|
||||
|
Loading…
Reference in New Issue
Block a user