[clutter] Remove calls to cogl_disable_fog



commit f7f81798982da89b8fe3de4b3dfaff4b94006dd2
Author: Neil Roberts <neil linux intel com>
Date:   Fri Apr 20 18:40:31 2012 +0100

    Remove calls to cogl_disable_fog
    
    I can't think of any reason why it would do this and there's no
    comment explaining it so let's just remove it. The global fog state
    has been removed in Cogl 2.0 so it will cause problems later.
    
    Reviewed-by: Emmanuele Bassi <ebassi linux intel com>

 clutter/clutter-stage.c   |    3 ---
 clutter/clutter-texture.c |    1 -
 2 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/clutter/clutter-stage.c b/clutter/clutter-stage.c
index 7ea13b5..6a040c4 100644
--- a/clutter/clutter-stage.c
+++ b/clutter/clutter-stage.c
@@ -696,8 +696,6 @@ clutter_stage_paint (ClutterActor *self)
   if (!STAGE_NO_CLEAR_ON_PAINT (self))
     clear_flags |= COGL_BUFFER_BIT_COLOR;
 
-  cogl_disable_fog ();
-
   CLUTTER_TIMER_START (_clutter_uprof_context, stage_clear_timer);
   /* we use the real alpha to clear the stage if :use-alpha is
    * set; the effect depends entirely on the Clutter backend
@@ -1500,7 +1498,6 @@ _clutter_stage_do_pick (ClutterStage   *stage,
   CLUTTER_NOTE (PICK, "Performing %s pick at %i,%i",
                 is_clipped ? "clippped" : "full", x, y);
 
-  cogl_disable_fog ();
   cogl_color_init_from_4ub (&stage_pick_id, 255, 255, 255, 255);
   CLUTTER_TIMER_START (_clutter_uprof_context, pick_clear);
   cogl_clear (&stage_pick_id,
diff --git a/clutter/clutter-texture.c b/clutter/clutter-texture.c
index 0cd3ef4..d9b2305 100644
--- a/clutter/clutter-texture.c
+++ b/clutter/clutter-texture.c
@@ -556,7 +556,6 @@ update_fbo (ClutterActor *self)
   cogl_clear (&transparent_col,
               COGL_BUFFER_BIT_COLOR |
               COGL_BUFFER_BIT_DEPTH);
-  cogl_disable_fog ();
 
   /* Render the actor to the fbo */
   clutter_actor_paint (priv->fbo_source);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]