Do not allocate an XRay buffer if compositing is dnot one for offscreen

rendering.
This commit is contained in:
Antony Riakiotakis
2015-02-17 23:38:28 +01:00
parent d74189a78a
commit b337cc1c21

View File

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