diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2014-12-03 12:05:37 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2014-12-03 12:05:37 +0000 |
commit | 3879bacc78246e538b5baed37c07e9d0617cdce8 (patch) | |
tree | d3cbeaf383fd8cfd0b00506ea7a753dd7ce8d4ed | |
parent | 47df16ec3b7956dd1544616ec6b959db361ce0e9 (diff) | |
download | clutter-3879bacc78246e538b5baed37c07e9d0617cdce8.tar.gz |
Avoid a compiler warning
Initialize a pointer variable.
-rw-r--r-- | clutter/cogl/clutter-stage-cogl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clutter/cogl/clutter-stage-cogl.c b/clutter/cogl/clutter-stage-cogl.c index 8fb9e6341..0b8f27987 100644 --- a/clutter/cogl/clutter-stage-cogl.c +++ b/clutter/cogl/clutter-stage-cogl.c @@ -457,6 +457,8 @@ clutter_stage_cogl_redraw (ClutterStageWindow *stage_window) may_use_clipped_redraw = TRUE; clip_region = &stage_cogl->bounding_redraw_clip; } + else + clip_region = NULL; if (may_use_clipped_redraw && 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) && may_use_clipped_redraw) { - _clutter_stage_do_paint (CLUTTER_STAGE (wrapper), - clip_region); + _clutter_stage_do_paint (CLUTTER_STAGE (wrapper), clip_region); } else _clutter_stage_do_paint (CLUTTER_STAGE (wrapper), NULL); |