mir: don't send buffers when using gl_painting on show also

This commit is contained in:
Marco Trevisan (Treviño)
2014-11-19 15:07:03 +01:00
parent 49699adece
commit 6f74d6cf73

View File

@@ -428,10 +428,13 @@ gdk_mir_window_impl_show (GdkWindow *window,
/* Make sure there's a surface to see */
ensure_surface (window);
/* Make sure something is rendered and then show first frame */
s = gdk_mir_window_impl_ref_cairo_surface (window);
send_buffer (window);
cairo_surface_destroy (s);
if (!window->gl_paint_context)
{
/* Make sure something is rendered and then show first frame */
s = gdk_mir_window_impl_ref_cairo_surface (window);
send_buffer (window);
cairo_surface_destroy (s);
}
}
static void