DRW: Remove DRW_state_clip_planes_reset

This commit is contained in:
Clément Foucault 2019-05-20 19:11:21 +02:00
parent 551bbc87af
commit e1153c6a1a
6 changed files with 0 additions and 18 deletions

View 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 */

View 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);

View 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 */
}
/** \} */
/* -------------------------------------------------------------------- */

View 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.

View 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)

View 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.