DRW: Remove DRW_state_clip_planes_reset
authorClément Foucault <foucault.clem@gmail.com>
Mon, 20 May 2019 17:11:21 +0000 (19:11 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Wed, 22 May 2019 11:29:04 +0000 (13:29 +0200)
source/blender/draw/engines/eevee/eevee_lightprobes.c
source/blender/draw/intern/DRW_render.h
source/blender/draw/intern/draw_manager_exec.c
source/blender/draw/modes/edit_curve_mode.c
source/blender/draw/modes/edit_mesh_mode.c
source/blender/draw/modes/edit_metaball_mode.c

index 92cd465..8597703 100644 (file)
@@ -972,8 +972,6 @@ static void lightbake_render_scene_reflected(int layer, EEVEE_BakeRenderData *us
   }
   DRW_draw_pass(psl->transparent_pass);
 
-  DRW_state_clip_planes_reset();
-
   DRW_stats_group_end();
 
   /* Restore */
index 764c102..b2ae71d 100644 (file)
@@ -687,7 +687,6 @@ void DRW_state_reset(void);
 void DRW_state_lock(DRWState state);
 
 void DRW_state_clip_planes_len_set(uint plane_len);
-void DRW_state_clip_planes_reset(void);
 
 /* Culling, return true if object is inside view frustum. */
 bool DRW_culling_sphere_test(const BoundSphere *bsphere);
index b4428dd..f6d18ae 100644 (file)
@@ -390,7 +390,6 @@ void DRW_state_reset(void)
 /**
  * This only works if DRWPasses have been tagged with DRW_STATE_CLIP_PLANES,
  * and if the shaders have support for it (see usage of gl_ClipDistance).
- * Be sure to call DRW_state_clip_planes_reset() after you finish drawing.
  */
 void DRW_state_clip_planes_len_set(uint plane_len)
 {
@@ -398,11 +397,6 @@ void DRW_state_clip_planes_len_set(uint plane_len)
   /* DUMMY TO REMOVE */
 }
 
-void DRW_state_clip_planes_reset(void)
-{
-  /* DUMMY TO REMOVE */
-}
-
 /** \} */
 
 /* -------------------------------------------------------------------- */
index fe14ab2..ff9f433 100644 (file)
@@ -330,8 +330,6 @@ static void EDIT_CURVE_draw_scene(void *vedata)
   /* Thoses passes don't write to depth and are AA'ed using other tricks. */
   DRW_draw_pass(psl->overlay_edge_pass);
   DRW_draw_pass(psl->overlay_vert_pass);
-
-  DRW_state_clip_planes_reset();
 }
 
 /* Cleanup when destroying the engine.
index 6d89906..2b17dd4 100644 (file)
@@ -821,8 +821,6 @@ static void EDIT_MESH_draw_scene(void *vedata)
     DRW_draw_pass(psl->depth_hidden_wire_in_front);
     DRW_draw_pass(psl->edit_face_overlay_in_front);
   }
-
-  DRW_state_clip_planes_reset();
 }
 
 static void EDIT_MESH_engine_free(void)
index 4056032..82b1ddb 100644 (file)
@@ -201,11 +201,6 @@ static void EDIT_METABALL_draw_scene(void *vedata)
   EDIT_METABALL_PassList *psl = ((EDIT_METABALL_Data *)vedata)->psl;
   /* render passes on default framebuffer. */
   DRW_draw_pass(psl->pass);
-
-  /* If you changed framebuffer, double check you rebind
-   * the default one with its textures attached before finishing */
-
-  DRW_state_clip_planes_reset();
 }
 
 /* Cleanup when destroying the engine.