summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2014-11-19 15:07:03 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2014-11-19 15:07:03 +0100
commit6f74d6cf7381eddb0e3ddcbbb967e80a0e90a29a (patch)
treef9508c9b2f86c6b3f42cf953d0626c7628ad547d
parent49699adecea23d4b5cc33cc68673220e04dfe7cd (diff)
downloadgtk+-wip/mir-gdkgl.tar.gz
mir: don't send buffers when using gl_painting on show alsowip/mir-gdkgl
-rw-r--r--gdk/mir/gdkmirwindowimpl.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/gdk/mir/gdkmirwindowimpl.c b/gdk/mir/gdkmirwindowimpl.c
index 24e4c0685a..6956502b81 100644
--- a/gdk/mir/gdkmirwindowimpl.c
+++ b/gdk/mir/gdkmirwindowimpl.c
@@ -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