[cairo] [PATCH 1/3] gl/msaa: If stenciling the clip fails, reset the color mask.

Martin Robinson mrobinson at igalia.com
Thu Dec 15 10:48:16 PST 2011


If the clip failed, not resetting the color mask leaves the GL context
in a state in which we cannot draw anything.
---
 src/cairo-gl-msaa-compositor.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/cairo-gl-msaa-compositor.c b/src/cairo-gl-msaa-compositor.c
index 81b8277..bfd23d4 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;
     }
-- 
1.7.5.4



More information about the cairo mailing list