This patch makes the following changes
- Replace (G.f & G_PICKSEL) with (dflag & DRAW_PICKING), which is already being used in places.
- Merge {dt, dflag} into a struct and pass it around as (const ObjectDrawCtx *) because this pair of args was already being passed around everywhere - (we could have ob_wire_col passed too but I prefer not for now since it becomes unclear which functions need colors).
- split draw_glsl_material into draw_glsl_material_ex which takes ObjectDrawCtx and draw_glsl_material which uses the v3d->draw_type.