diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-09-08 04:15:06 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-09-08 05:15:50 +0300 |
commit | ca8ffc523e3d08fc55c5cf000fa9fc3888950bf7 (patch) | |
tree | 389e302ad5c013642cfd0b9e9db0cb0ecf32897b /source/blender/draw/intern/draw_manager.c | |
parent | 28ea459a61f65de03724db8709271d41f6bf135b (diff) |
fix flush
Diffstat (limited to 'source/blender/draw/intern/draw_manager.c')
-rw-r--r-- | source/blender/draw/intern/draw_manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c index 8d69ed05fc6..f7c126d2e99 100644 --- a/source/blender/draw/intern/draw_manager.c +++ b/source/blender/draw/intern/draw_manager.c @@ -2862,7 +2862,6 @@ void DRW_opengl_render_context_enable(void *re_gl_context) void DRW_opengl_render_context_disable(void *re_gl_context) { - GPU_flush(); WM_opengl_context_release(re_gl_context); /* TODO get rid of the blocking. */ BLI_ticket_mutex_unlock(DST.gl_context_mutex); @@ -2880,6 +2879,7 @@ void DRW_gpu_render_context_enable(void *re_gpu_context) /* Needs to be called BEFORE DRW_opengl_render_context_disable() */ void DRW_gpu_render_context_disable(void *UNUSED(re_gpu_context)) { + GPU_flush(); GPU_context_active_set(NULL); } |