[Bf-blender-cvs] [33c6b269d11] master: EEVEE: Fix test crashing
Clément Foucault
noreply at git.blender.org
Wed Mar 11 18:52:19 CET 2020
Commit: 33c6b269d116856b045f1ed51081bed14c5ed1da
Author: Clément Foucault
Date: Wed Mar 11 18:51:56 2020 +0100
Branches: master
https://developer.blender.org/rB33c6b269d116856b045f1ed51081bed14c5ed1da
EEVEE: Fix test crashing
Probe counting now needs to have proper gl capabilities initialised to run
correctly.
===================================================================
M source/blender/draw/engines/eevee/eevee_lightcache.c
===================================================================
diff --git a/source/blender/draw/engines/eevee/eevee_lightcache.c b/source/blender/draw/engines/eevee/eevee_lightcache.c
index ae4c7dec1e1..35a45cc97f4 100644
--- a/source/blender/draw/engines/eevee/eevee_lightcache.c
+++ b/source/blender/draw/engines/eevee/eevee_lightcache.c
@@ -1262,6 +1262,12 @@ void EEVEE_lightbake_job(void *custom_data, short *stop, short *do_update, float
lbake->do_update = do_update;
lbake->progress = progress;
+ if (G.background) {
+ /* Make sure to init GL capabilities before counting probes. */
+ eevee_lightbake_context_enable(lbake);
+ eevee_lightbake_context_disable(lbake);
+ }
+
/* Count lightprobes */
eevee_lightbake_count_probes(lbake);
More information about the Bf-blender-cvs
mailing list