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

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to