From b337cc1c21cf9e77f25dd47baea1d2fa4b7d368d Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Tue, 17 Feb 2015 23:38:28 +0100 Subject: Do not allocate an XRay buffer if compositing is dnot one for offscreen rendering. --- source/blender/editors/space_view3d/view3d_draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c index 00a67dc3dd7..0878f2b7aa7 100644 --- a/source/blender/editors/space_view3d/view3d_draw.c +++ b/source/blender/editors/space_view3d/view3d_draw.c @@ -3133,7 +3133,7 @@ void ED_view3d_draw_offscreen( } /* main drawing call */ - view3d_draw_objects(NULL, scene, v3d, ar, NULL, do_bgpic, true, fx); + view3d_draw_objects(NULL, scene, v3d, ar, NULL, do_bgpic, true, do_compositing ? fx : NULL); /* post process */ if (do_compositing) { -- cgit v1.2.3