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

Martin Robinson <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
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

--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.