diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-01-22 04:09:27 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-01-22 04:09:27 +0300 |
commit | 7f40d553f90358c5383100f4f5b5e2410dcd7369 (patch) | |
tree | dab3bd1aa664ea46101fa0e68de171e92fb0ff53 /source/blender/draw/engines/eevee/eevee_lightprobes.c | |
parent | c7768bcf4b116aa515890feed2f3019a2d9c55f4 (diff) |
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`.
Diffstat (limited to 'source/blender/draw/engines/eevee/eevee_lightprobes.c')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_lightprobes.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_lightprobes.c b/source/blender/draw/engines/eevee/eevee_lightprobes.c index 52bc4b9c55f..a9e51b8ebe8 100644 --- a/source/blender/draw/engines/eevee/eevee_lightprobes.c +++ b/source/blender/draw/engines/eevee/eevee_lightprobes.c @@ -65,7 +65,6 @@ static struct { struct GPUVertFormat *format_probe_display_planar; } e_data = {NULL}; /* Engine data */ -extern GlobalsUboStorage ts; /* *********** FUNCTIONS *********** */ @@ -316,7 +315,7 @@ void EEVEE_lightprobes_cache_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedat Scene *scene = draw_ctx->scene; World *wo = scene->world; - float *col = ts.colorBackground; + const float *col = G_draw.block.colorBackground; /* LookDev */ EEVEE_lookdev_cache_init(vedata, &grp, psl->probe_background, wo, pinfo); |