From b98c8c126989e1158c3f78d8e5f20834a2af10b2 Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Thu, 15 Dec 2011 10:48:16 -0800 Subject: [PATCH] gl/msaa: If stenciling the clip fails, reset the color mask. If the clip failed, not resetting the color mask leaves the GL context in a state in which we cannot draw anything. Signed-off-by: Chris Wilson --- src/cairo-gl-msaa-compositor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cairo-gl-msaa-compositor.c b/src/cairo-gl-msaa-compositor.c index 81b8277a4..bfd23d48b 100644 --- a/src/cairo-gl-msaa-compositor.c +++ b/src/cairo-gl-msaa-compositor.c @@ -189,6 +189,7 @@ _draw_clip_to_stencil_buffer (cairo_gl_context_t *ctx, status = _draw_clip (ctx, setup, clip); if (unlikely (status)) { + glColorMask (1, 1, 1, 1); _disable_stencil_buffer (); return status; }