=bmesh= merge from trunk at r36529
[blender.git] / source / blender / editors / render / render_shading.c
index 1a0d481fadc0996bd43842705af6828de92c7e98..4a6698046dd70467e937d710d69bdf6e22b9086c 100644 (file)
@@ -878,7 +878,7 @@ static int save_envmap(wmOperator *op, Scene *scene, EnvMap *env, char *str, int
        /* to save, we first get absolute path */
        BLI_path_abs(str, G.main->name);
        
-       if (BKE_write_ibuf(scene, ibuf, str, imtype, scene->r.subimtype, scene->r.quality)) {
+       if (BKE_write_ibuf(ibuf, str, imtype, scene->r.subimtype, scene->r.quality)) {
                retval = OPERATOR_FINISHED;
        }
        else {