mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
Avoid a compiler warning
Initialize a pointer variable.
This commit is contained in:
parent
47df16ec3b
commit
3879bacc78
@ -457,6 +457,8 @@ clutter_stage_cogl_redraw (ClutterStageWindow *stage_window)
|
|||||||
may_use_clipped_redraw = TRUE;
|
may_use_clipped_redraw = TRUE;
|
||||||
clip_region = &stage_cogl->bounding_redraw_clip;
|
clip_region = &stage_cogl->bounding_redraw_clip;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
clip_region = NULL;
|
||||||
|
|
||||||
if (may_use_clipped_redraw &&
|
if (may_use_clipped_redraw &&
|
||||||
G_LIKELY (!(clutter_paint_debug_flags & CLUTTER_DEBUG_DISABLE_CLIPPED_REDRAWS)))
|
G_LIKELY (!(clutter_paint_debug_flags & CLUTTER_DEBUG_DISABLE_CLIPPED_REDRAWS)))
|
||||||
@ -559,8 +561,7 @@ clutter_stage_cogl_redraw (ClutterStageWindow *stage_window)
|
|||||||
if (G_UNLIKELY (clutter_paint_debug_flags & CLUTTER_DEBUG_DISABLE_CLIPPED_REDRAWS) &&
|
if (G_UNLIKELY (clutter_paint_debug_flags & CLUTTER_DEBUG_DISABLE_CLIPPED_REDRAWS) &&
|
||||||
may_use_clipped_redraw)
|
may_use_clipped_redraw)
|
||||||
{
|
{
|
||||||
_clutter_stage_do_paint (CLUTTER_STAGE (wrapper),
|
_clutter_stage_do_paint (CLUTTER_STAGE (wrapper), clip_region);
|
||||||
clip_region);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
_clutter_stage_do_paint (CLUTTER_STAGE (wrapper), NULL);
|
_clutter_stage_do_paint (CLUTTER_STAGE (wrapper), NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user