diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2018-06-25 13:32:48 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-06-25 13:32:48 +0300 |
commit | 8a7f317666caa41aad0428b5ed3f399cdfbbd816 (patch) | |
tree | 7e6ba6c6a1ab952cc175d4e08b39aebc2286cb4a /source/blender/editors/space_view3d/view3d_draw.c | |
parent | f33cb522dd5793c685dcd681f7c7e13ff60f920a (diff) |
Cleanup: Nuke most of G.main from GPU code.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_draw.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_draw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c index bf92fcfff33..fbf2bd33638 100644 --- a/source/blender/editors/space_view3d/view3d_draw.c +++ b/source/blender/editors/space_view3d/view3d_draw.c @@ -3021,7 +3021,7 @@ static void view3d_draw_objects( } if ((v3d->flag2 & V3D_RENDER_SHADOW) == 0) { - GPU_free_images_old(); + GPU_free_images_old(bmain); } } @@ -3206,7 +3206,7 @@ void ED_view3d_draw_offscreen( if ((v3d->flag2 & V3D_RENDER_SHADOW) == 0) { /* free images which can have changed on frame-change * warning! can be slow so only free animated images - campbell */ - GPU_free_images_anim(); + GPU_free_images_anim(bmain); } /* setup view matrices before fx or unbinding the offscreen buffers will cause issues */ @@ -3260,7 +3260,7 @@ void ED_view3d_draw_offscreen( } /* freeing the images again here could be done after the operator runs, leaving for now */ - GPU_free_images_anim(); + GPU_free_images_anim(bmain); } /* restore size */ |