diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-01-28 09:23:12 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-01-28 09:23:12 +0300 |
commit | 05dbc470ad9c1f953b5e8d2da5e3f1bfba6d4814 (patch) | |
tree | de528cc01ce385cd17d6d0b2fb2624c43a0b78de /source/blender/gpu/intern/gpu_material.c | |
parent | a1d7f67d81bdc7ece8a757ab79d0b64f4e612bfd (diff) |
Cleanup: warnings & style
Diffstat (limited to 'source/blender/gpu/intern/gpu_material.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_material.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/gpu/intern/gpu_material.c b/source/blender/gpu/intern/gpu_material.c index 09d326e2ee8..4d9fa54939c 100644 --- a/source/blender/gpu/intern/gpu_material.c +++ b/source/blender/gpu/intern/gpu_material.c @@ -1924,16 +1924,17 @@ static void do_world_tex(GPUShadeInput *shi, struct World *wo, GPUNodeLink **hor if (mtex->mapto & WOMAP_ZENUP) { if (mtex->mapto & WOMAP_ZENDOWN) { GPU_link(mat, "world_zen_mapping", shi->view, GPU_uniform(&mtex->zenupfac), - GPU_uniform(&mtex->zendownfac), &zenfac); + GPU_uniform(&mtex->zendownfac), &zenfac); } else { GPU_link(mat, "world_zen_mapping", shi->view, GPU_uniform(&mtex->zenupfac), - GPU_uniform(&zero), &zenfac); + GPU_uniform(&zero), &zenfac); } } - else if (mtex->mapto & WOMAP_ZENDOWN) + else if (mtex->mapto & WOMAP_ZENDOWN) { GPU_link(mat, "world_zen_mapping", shi->view, GPU_uniform(&zero), - GPU_uniform(&mtex->zendownfac), &zenfac); + GPU_uniform(&mtex->zendownfac), &zenfac); + } } else { if (mtex->mapto & WOMAP_ZENUP) |