forked from bartvdbraak/blender
EEVEE: Fix test crashing
Probe counting now needs to have proper gl capabilities initialised to run correctly.
This commit is contained in:
parent
12e64e5ec1
commit
33c6b269d1
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user