diff --git a/libweston/renderer-gl/gl-renderer.c b/libweston/renderer-gl/gl-renderer.c index e400ecb8..fe33b550 100644 --- a/libweston/renderer-gl/gl-renderer.c +++ b/libweston/renderer-gl/gl-renderer.c @@ -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,