diff options
author | Martin Robinson <mrobinson@igalia.com> | 2011-12-15 10:48:16 -0800 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-15 19:22:17 +0000 |
commit | b98c8c126989e1158c3f78d8e5f20834a2af10b2 (patch) | |
tree | 948579c7fa5cbe829815147124e3a5bdb3adb945 | |
parent | 8f74159d9295c8570c244c6e3c454937c842b9d3 (diff) |
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>
-rw-r--r-- | 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 81b8277a..bfd23d48 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; } |