Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2019-05-21 17:55:17 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-05-22 14:29:05 +0300
commit742848843dd04df530f25ac5111cfc2f16237f51 (patch)
tree66a135625015608516bcf28c366744d772c8bafe /source/blender/draw/engines/eevee/eevee_lightprobes.c
parent925b5823ccbc4fb3f7f90b29950e3d7bb0d5c90e (diff)
DRW: Add view param to DRW_culling_* functions
Diffstat (limited to 'source/blender/draw/engines/eevee/eevee_lightprobes.c')
-rw-r--r--source/blender/draw/engines/eevee/eevee_lightprobes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_lightprobes.c b/source/blender/draw/engines/eevee/eevee_lightprobes.c
index 56038892ca8..9b193c3a837 100644
--- a/source/blender/draw/engines/eevee/eevee_lightprobes.c
+++ b/source/blender/draw/engines/eevee/eevee_lightprobes.c
@@ -466,7 +466,8 @@ static bool eevee_lightprobes_culling_test(Object *ob)
for (int v = 0; v < 8; ++v) {
mul_m4_v3(tmp, bbox.vec[v]);
}
- return DRW_culling_box_test(&bbox);
+ const DRWView *default_view = DRW_view_default_get();
+ return DRW_culling_box_test(default_view, &bbox);
}
case LIGHTPROBE_TYPE_CUBE:
return true; /* TODO */