EEVEE: Fix test crashing

Probe counting now needs to have proper gl capabilities initialised to run
correctly.
This commit is contained in:
Clément Foucault 2020-03-11 18:51:56 +01:00
parent 12e64e5ec1
commit 33c6b269d1
Notes: blender-bot 2023-02-14 03:13:26 +01:00
Referenced by issue #74243, Workbench x-ray, wireframe and anti-aliasing artifacts on NVIDIA / Linux
1 changed files with 6 additions and 0 deletions

View File

@ -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);