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 <chris@chris-wilson.co.uk>
This commit is contained in:
Martin Robinson 2011-12-15 10:48:16 -08:00 committed by Chris Wilson
parent 8f74159d92
commit b98c8c1269

View file

@ -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;
}