[Spice-devel] [PATCH spice-gtk 2/2] spice-widget-egl: Simplify gl_make_current reducing indentation
Frediano Ziglio
fziglio at redhat.com
Fri Jan 18 12:37:38 UTC 2019
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
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
More information about the Spice-devel
mailing list