[Spice-devel] [PATCH spice-gtk 2/2] spice-widget-egl: Simplify gl_make_current reducing indentation
Marc-André Lureau
marcandre.lureau at gmail.com
Fri Jan 18 12:47:24 UTC 2019
On Fri, Jan 18, 2019 at 4:37 PM Frediano Ziglio <fziglio at redhat.com> wrote:
>
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
ack
> ---
> src/spice-widget-egl.c | 9 ++++-----
> 1 file changed, 4 insertions(+), 5 deletions(-)
>
> diff --git a/src/spice-widget-egl.c b/src/spice-widget-egl.c
> index 5ad84bfc..43fccd77 100644
> --- a/src/spice-widget-egl.c
> +++ b/src/spice-widget-egl.c
> @@ -306,14 +306,13 @@ gl_make_current(SpiceDisplay *display, GError **err)
> "failed to activate context");
> return FALSE;
> }
> + return TRUE;
> }
> - else
> #endif
> - {
> - GtkWidget *area = gtk_stack_get_child_by_name(d->stack, "gl-area");
>
> - gtk_gl_area_make_current(GTK_GL_AREA(area));
> - }
> + GtkWidget *area = gtk_stack_get_child_by_name(d->stack, "gl-area");
> +
> + gtk_gl_area_make_current(GTK_GL_AREA(area));
>
> return TRUE;
> }
> --
> 2.20.1
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
--
Marc-André Lureau
More information about the Spice-devel
mailing list