mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
Don't clear the stencil buffer before painting and picking
The stencil buffer is always cleared the first time a clip is used that needs it and the stencil test is disabled otherwise so there is no need to clear before a paint.
This commit is contained in:
parent
36cfb60307
commit
e9b863eba2
@ -374,8 +374,7 @@ _clutter_do_pick (ClutterStage *stage,
|
||||
cogl_disable_fog ();
|
||||
cogl_clear (&white,
|
||||
COGL_BUFFER_BIT_COLOR |
|
||||
COGL_BUFFER_BIT_DEPTH |
|
||||
COGL_BUFFER_BIT_STENCIL);
|
||||
COGL_BUFFER_BIT_DEPTH);
|
||||
|
||||
/* Disable dithering (if any) when doing the painting in pick mode */
|
||||
dither_was_on = glIsEnabled (GL_DITHER);
|
||||
|
@ -224,8 +224,7 @@ clutter_stage_paint (ClutterActor *self)
|
||||
priv->color.alpha);
|
||||
cogl_clear (&stage_color,
|
||||
COGL_BUFFER_BIT_COLOR |
|
||||
COGL_BUFFER_BIT_DEPTH |
|
||||
COGL_BUFFER_BIT_STENCIL);
|
||||
COGL_BUFFER_BIT_DEPTH);
|
||||
|
||||
if (priv->use_fog)
|
||||
{
|
||||
|
@ -595,8 +595,7 @@ clutter_texture_paint (ClutterActor *self)
|
||||
cogl_color_set_from_4ub (&transparent_col, 0, 0, 0, 0);
|
||||
cogl_clear (&transparent_col,
|
||||
COGL_BUFFER_BIT_COLOR |
|
||||
COGL_BUFFER_BIT_DEPTH |
|
||||
COGL_BUFFER_BIT_STENCIL);
|
||||
COGL_BUFFER_BIT_DEPTH);
|
||||
cogl_disable_fog ();
|
||||
|
||||
/* Clear the clipping stack so that if the FBO actor is being
|
||||
|
Loading…
Reference in New Issue
Block a user