Signed-off-by: Frediano Ziglio <[email protected]>
---
 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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to