Fix edit mode not drawing
authorDalai Felinto <dfelinto@gmail.com>
Mon, 3 Jul 2017 19:48:39 +0000 (21:48 +0200)
committerDalai Felinto <dfelinto@gmail.com>
Mon, 3 Jul 2017 19:48:39 +0000 (21:48 +0200)
This was introduced on 1ad0cc6bde.

source/blender/draw/intern/draw_manager.c

index 6125aa9bf1a078add29137b22904aea91fe9af85..0dd551562aea835386bee8412aa93c7a97aedbbe 100644 (file)
@@ -2973,9 +2973,6 @@ void DRW_draw_render_loop_ex(
        DST.viewport = rv3d->viewport;
        v3d->zbuf = true;
 
-       /* Get list of enabled engines */
-       DRW_engines_enable(scene, sl);
-
        /* Setup viewport */
        cache_is_dirty = GPU_viewport_cache_validate(DST.viewport, DRW_engines_get_hash());
 
@@ -2987,6 +2984,9 @@ void DRW_draw_render_loop_ex(
 
        DRW_viewport_var_init();
 
+       /* Get list of enabled engines */
+       DRW_engines_enable(scene, sl);
+
        /* Update ubos */
        DRW_globals_update();