[mutter/wip/carlosg/clip-regions: 4/6] cogl: Drop unused struct field
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/clip-regions: 4/6] cogl: Drop unused struct field
- Date: Wed, 30 Oct 2019 21:42:25 +0000 (UTC)
commit 76d6830d890ff53f89ab243139f201b6015e03f8
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Oct 20 13:14:09 2019 +0200
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
cogl/cogl/cogl-context-private.h | 5 -----
cogl/cogl/driver/gl/cogl-clip-stack-gl.c | 3 ---
2 files changed, 8 deletions(-)
---
diff --git a/cogl/cogl/cogl-context-private.h b/cogl/cogl/cogl-context-private.h
index 04040ce8c..d767abcf6 100644
--- a/cogl/cogl/cogl-context-private.h
+++ b/cogl/cogl/cogl-context-private.h
@@ -272,11 +272,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
diff --git a/cogl/cogl/driver/gl/cogl-clip-stack-gl.c b/cogl/cogl/driver/gl/cogl-clip-stack-gl.c
index 0342ab5b6..2f13f5d11 100644
--- a/cogl/cogl/driver/gl/cogl-clip-stack-gl.c
+++ b/cogl/cogl/driver/gl/cogl-clip-stack-gl.c
@@ -375,7 +375,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;
}
@@ -494,6 +493,4 @@ _cogl_clip_stack_gl_flush (CoglClipStack *stack,
* box */
}
}
-
- ctx->current_clip_stack_uses_stencil = using_stencil_buffer;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]