DRW: generalize selecting between regular/clipped shaders
authorCampbell Barton <ideasman42@gmail.com>
Wed, 23 Jan 2019 02:21:49 +0000 (13:21 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 23 Jan 2019 02:34:55 +0000 (13:34 +1100)
commit14d947dcadea7c9debe6c8a078a571eba6cb828c
treebaed2bc9dd567ab509133cd72984b11fec919f2e
parentc403508e41c67367d1fdd725065951063d5ae7b2
DRW: generalize selecting between regular/clipped shaders

Each engine was doing this on its own.
Move to DRWContextState, use an enum.
source/blender/draw/intern/DRW_render.h
source/blender/draw/intern/draw_manager.c
source/blender/draw/modes/edit_lattice_mode.c
source/blender/draw/modes/edit_mesh_mode.c
source/blender/draw/modes/object_mode.c
source/blender/draw/modes/overlay_mode.c
source/blender/draw/modes/paint_vertex_mode.c
source/blender/draw/modes/paint_weight_mode.c