cogl: Remove need_stencil config
As it is always set to TRUE Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3915>
This commit is contained in:
parent
41ec1aa0ca
commit
833070ab79
4 changed files with 3 additions and 9 deletions
|
@ -53,7 +53,6 @@ typedef struct _CoglFramebufferDriverConfig
|
|||
|
||||
typedef struct
|
||||
{
|
||||
gboolean need_stencil;
|
||||
} CoglFramebufferConfig;
|
||||
|
||||
/* XXX: The order of these indices determines the order they are
|
||||
|
|
|
@ -53,7 +53,5 @@ cogl_onscreen_template_new (void)
|
|||
{
|
||||
CoglOnscreenTemplate *onscreen_template = g_object_new (COGL_TYPE_ONSCREEN_TEMPLATE, NULL);
|
||||
|
||||
onscreen_template->config.need_stencil = TRUE;
|
||||
|
||||
return onscreen_template;
|
||||
}
|
||||
|
|
|
@ -204,11 +204,8 @@ cogl_display_egl_determine_attributes (CoglDisplay *display,
|
|||
config,
|
||||
attributes);
|
||||
|
||||
if (config->need_stencil)
|
||||
{
|
||||
attributes[i++] = EGL_STENCIL_SIZE;
|
||||
attributes[i++] = 2;
|
||||
}
|
||||
attributes[i++] = EGL_STENCIL_SIZE;
|
||||
attributes[i++] = 2;
|
||||
|
||||
attributes[i++] = EGL_RED_SIZE;
|
||||
attributes[i++] = 1;
|
||||
|
|
|
@ -520,7 +520,7 @@ glx_attributes_from_framebuffer_config (CoglDisplay *display,
|
|||
attributes[i++] = GLX_DEPTH_SIZE;
|
||||
attributes[i++] = 1;
|
||||
attributes[i++] = GLX_STENCIL_SIZE;
|
||||
attributes[i++] = config->need_stencil ? 2 : 0;
|
||||
attributes[i++] = 2;
|
||||
|
||||
attributes[i++] = None;
|
||||
|
||||
|
|
Loading…
Reference in a new issue