cogl: Drop unused struct field

We only ever stored that the current clip uses the stencil buffer, but
never read it back. It doesn't seem like we'll have an use for it.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/867
This commit is contained in:
Carlos Garnacho 2019-10-20 13:14:09 +02:00 committed by Georges Basile Stavracas Neto
parent e44bd2edb4
commit a586f6a152
2 changed files with 0 additions and 8 deletions

View File

@ -270,11 +270,6 @@ struct _CoglContext
same state multiple times. When the clip state is flushed this
will hold a reference */
CoglClipStack *current_clip_stack;
/* Whether the stencil buffer was used as part of the current clip
state. If TRUE then any further use of the stencil buffer (such
as for drawing paths) would need to be merged with the existing
stencil buffer */
gboolean current_clip_stack_uses_stencil;
/* This is used as a temporary buffer to fill a CoglBuffer when
cogl_buffer_map fails and we only want to map to fill it with new

View File

@ -383,7 +383,6 @@ _cogl_clip_stack_gl_flush (CoglClipStack *stack,
{
COGL_NOTE (CLIPPING, "Flushed empty clip stack");
ctx->current_clip_stack_uses_stencil = FALSE;
GE (ctx, glDisable (GL_SCISSOR_TEST));
return;
}
@ -502,6 +501,4 @@ _cogl_clip_stack_gl_flush (CoglClipStack *stack,
* box */
}
}
ctx->current_clip_stack_uses_stencil = using_stencil_buffer;
}