From 9ad55edf24f74353c095153e370d6f648f4e5593 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Tue, 30 Nov 2010 10:06:12 -0500 Subject: [PATCH] egl: Don't try to use stage_x11 with non-X winsys The access to stage_x11 has to be protected by COGL_HAS_X11_SUPPORT. --- clutter/egl/clutter-stage-egl.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/clutter/egl/clutter-stage-egl.c b/clutter/egl/clutter-stage-egl.c index 859a87740..08107be12 100644 --- a/clutter/egl/clutter-stage-egl.c +++ b/clutter/egl/clutter-stage-egl.c @@ -455,11 +455,14 @@ _clutter_stage_egl_redraw (ClutterStageEGL *stage_egl, stage_egl->bounding_redraw_clip.width != 0 && /* some drivers struggle to get going and produce some junk * frames when starting up... */ - G_LIKELY (stage_egl->frame_count > 3) && + G_LIKELY (stage_egl->frame_count > 3) +#ifdef COGL_HAS_X11_SUPPORT /* While resizing a window clipped redraws are disabled to avoid * artefacts. See clutter-event-x11.c:event_translate for a * detailed explanation */ - G_LIKELY (stage_x11->clipped_redraws_cool_off == 0)) + && G_LIKELY (stage_x11->clipped_redraws_cool_off == 0) +#endif + ) may_use_clipped_redraw = TRUE; else may_use_clipped_redraw = FALSE;