Cleanp: use single global for draw manager
authorCampbell Barton <ideasman42@gmail.com>
Tue, 22 Jan 2019 01:09:27 +0000 (12:09 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 22 Jan 2019 01:09:27 +0000 (12:09 +1100)
commit7f40d553f90358c5383100f4f5b5e2410dcd7369
treedab3bd1aa664ea46101fa0e68de171e92fb0ff53
parentc7768bcf4b116aa515890feed2f3019a2d9c55f4
Cleanp: use single global for draw manager

Add 'G_draw' for all draw manager globals,
avoids adding extern to each file.

Connection between `ts` and `globals_ubo` wasn't obvious,
now called `G_draw.block` & `G_draw.block_ubo`.
21 files changed:
source/blender/draw/engines/eevee/eevee_engine.c
source/blender/draw/engines/eevee/eevee_lightprobes.c
source/blender/draw/engines/eevee/eevee_materials.c
source/blender/draw/engines/eevee/eevee_shaders.c
source/blender/draw/intern/draw_anim_viz.c
source/blender/draw/intern/draw_common.c
source/blender/draw/intern/draw_common.h
source/blender/draw/intern/draw_manager.c
source/blender/draw/modes/edit_armature_mode.c
source/blender/draw/modes/edit_curve_mode.c
source/blender/draw/modes/edit_lattice_mode.c
source/blender/draw/modes/edit_mesh_mode.c
source/blender/draw/modes/edit_metaball_mode.c
source/blender/draw/modes/edit_text_mode.c
source/blender/draw/modes/object_mode.c
source/blender/draw/modes/overlay_mode.c
source/blender/draw/modes/paint_texture_mode.c
source/blender/draw/modes/paint_vertex_mode.c
source/blender/draw/modes/paint_weight_mode.c
source/blender/draw/modes/particle_mode.c
source/blender/draw/modes/pose_mode.c