Draw Manager: Fix lazy compilation on certain hardware.

Before, the drawing functions sometimes froze with `AMD Radeon HD 7570M`.
This commit is contained in:
Germano Cavalcante 2018-04-10 11:03:15 -03:00
parent 6962119e7f
commit 71980945bc
1 changed files with 1 additions and 0 deletions

View File

@ -137,6 +137,7 @@ static void drw_deferred_shader_compilation_exec(void *custom_data, short *stop,
*progress = (float)comp->shaders_done / (float)total;
*do_update = true;
glFinish();
BLI_mutex_unlock(&comp->compilation_lock);
drw_deferred_shader_free(comp->mat_compiling);