Refactor view3d offscreen drawing to avoid having multiple boolean arguments
[blender-staging.git] / source / blender / editors / sculpt_paint / paint_image_proj.c
index ae6dbbf440c63d8ce3b4ee090b7068012ed8ef3a..6fa45f1932a30299ced54633a02ddc37db7946ca 100644 (file)
@@ -5460,7 +5460,7 @@ static int texture_paint_image_from_view_exec(bContext *C, wmOperator *op)
 
        ibuf = ED_view3d_draw_offscreen_imbuf(
                scene, CTX_wm_view3d(C), CTX_wm_region(C),
 
        ibuf = ED_view3d_draw_offscreen_imbuf(
                scene, CTX_wm_view3d(C), CTX_wm_region(C),
-               w, h, IB_rect, false, R_ALPHAPREMUL, 0, false, NULL,
+               w, h, IB_rect, V3D_OFSDRAW_NONE, R_ALPHAPREMUL, 0, NULL,
                NULL, NULL, err_out);
        if (!ibuf) {
                /* Mostly happens when OpenGL offscreen buffer was failed to create, */
                NULL, NULL, err_out);
        if (!ibuf) {
                /* Mostly happens when OpenGL offscreen buffer was failed to create, */