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:
Clément Foucault 2018-10-11 13:19:49 +02:00
parent c901ebcd21
commit 3f0873fa1e
Notes: blender-bot 2023-10-12 12:49:04 +02:00
Referenced by pull request #109382, EEVEE: Remove unneeded GPU_finish
Referenced by commit 4038cabc6d, EEVEE: Remove unneeded GPU_finish
Referenced by commit 1d847b2ee3, EEVEE: Restrict GPU_finish workaround to Nvidia OpenGL backend
1 changed files with 3 additions and 0 deletions

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