mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 20:48:03 +02:00
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:
parent
8f74159d92
commit
b98c8c1269
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue