[Bf-blender-cvs] [71980945bc0] blender2.8: Draw Manager: Fix lazy compilation on certain hardware.
Germano
noreply at git.blender.org
Tue Apr 10 16:03:24 CEST 2018
Commit: 71980945bc0f8b963af9a814e38f0198a86f58f3
Author: Germano
Date: Tue Apr 10 11:03:15 2018 -0300
Branches: blender2.8
https://developer.blender.org/rB71980945bc0f8b963af9a814e38f0198a86f58f3
Draw Manager: Fix lazy compilation on certain hardware.
Before, the drawing functions sometimes froze with `AMD Radeon HD 7570M`.
===================================================================
M source/blender/draw/intern/draw_manager_shader.c
===================================================================
diff --git a/source/blender/draw/intern/draw_manager_shader.c b/source/blender/draw/intern/draw_manager_shader.c
index 5b4971f0730..760d3a359fe 100644
--- a/source/blender/draw/intern/draw_manager_shader.c
+++ b/source/blender/draw/intern/draw_manager_shader.c
@@ -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);
More information about the Bf-blender-cvs
mailing list