[Spice-devel] [PATCH spice-gtk v2] Unrealize egl display only if it has context
Pavel Grunt
pgrunt at redhat.com
Mon Jun 19 14:32:57 UTC 2017
Avoids a critical to be logged when closing remote-viewer:
"gl_make_current: assertion 'd->egl.context_ready' failed"
---
src/spice-widget.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/spice-widget.c b/src/spice-widget.c
index 139510d..c335083 100644
--- a/src/spice-widget.c
+++ b/src/spice-widget.c
@@ -2161,7 +2161,8 @@ static void unrealize(GtkWidget *widget)
{
spice_cairo_image_destroy(SPICE_DISPLAY(widget));
#if HAVE_EGL
- spice_egl_unrealize_display(SPICE_DISPLAY(widget));
+ if (SPICE_DISPLAY(widget)->priv->egl.context_ready)
+ spice_egl_unrealize_display(SPICE_DISPLAY(widget));
#endif
GTK_WIDGET_CLASS(spice_display_parent_class)->unrealize(widget);
--
2.13.0
More information about the Spice-devel
mailing list