Eevee: Fix blank output if scene complexity is high

Encountered on Nvidia + Linux, it seems that doing everything all at once
can make the driver give up the whole command list and return nothing as
the output of the render.
This commit is contained in:
2018-10-11 13:19:49 +02:00
parent c901ebcd21
commit 3f0873fa1e

View File

@@ -549,6 +549,9 @@ void EEVEE_render_draw(EEVEE_Data *vedata, RenderEngine *engine, RenderLayer *rl
/* Post Process */
EEVEE_draw_effects(sldata, vedata);
/* XXX Seems to fix TDR issue with NVidia drivers on linux. */
glFinish();
RE_engine_update_progress(engine, (float)(render_samples++) / (float)tot_sample);
}