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.
This commit is contained in:
Clément Foucault 2018-12-02 22:33:31 +01:00
parent 756df74fca
commit cf18eb2de3
Notes: blender-bot 2023-02-14 05:15:16 +01:00
Referenced by issue #58959, Occasional crashes in edit mode while moving a mesh with the mirror modifier
Referenced by issue #58515, Dupli Mapping Issue Cycles
Referenced by issue #56996, Lagging when rotating the view
1 changed files with 5 additions and 0 deletions

View File

@ -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) {