Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2018-12-03 00:33:31 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-12-03 00:35:15 +0300
commitcf18eb2de39fd1e4c35e1cf545092834b34e000d (patch)
treeedf682a22b9f426ae941bc0bf5a5fdab42271ce9
parent756df74fca7393e4f4dc6e50330f88df437e00ae (diff)
Fix T56996: MacOS: Lagging when rotating the view
It happens on multiple configuration so we cannot isolate the fix to only some config. Thanks Hugo Lamarche for helping finding the fix.
-rw-r--r--source/blender/draw/intern/draw_manager.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c
index 10b49950c0f..5faf7cf8f59 100644
--- a/source/blender/draw/intern/draw_manager.c
+++ b/source/blender/draw/intern/draw_manager.c
@@ -1516,6 +1516,11 @@ void DRW_draw_render_loop_ex(
drw_engines_draw_scene();
+#ifdef __APPLE__
+ /* Fix 3D view being "laggy" on macos. (See T56996) */
+ glFlush();
+#endif
+
/* annotations - temporary drawing buffer (3d space) */
/* XXX: Or should we use a proper draw/overlay engine for this case? */
if (do_annotations) {