[gtk+/wip/mir-gdkgl] mir: don't send buffers when using gl_painting on show also
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/mir-gdkgl] mir: don't send buffers when using gl_painting on show also
- Date: Wed, 19 Nov 2014 14:07:19 +0000 (UTC)
commit 6f74d6cf7381eddb0e3ddcbbb967e80a0e90a29a
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Wed Nov 19 15:07:03 2014 +0100
mir: don't send buffers when using gl_painting on show also
gdk/mir/gdkmirwindowimpl.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/gdk/mir/gdkmirwindowimpl.c b/gdk/mir/gdkmirwindowimpl.c
index 24e4c06..6956502 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]