This commit reverses the OpenEXR specific stuff in the OpenEXR commit I
[blender-staging.git] / source / blender / imbuf / intern / writeimage.c
index ffc1c12d00dcf2022bb5da4cb61c355b72110a3d..150ab8aac26c8f69d6c8e41b089b1a9d0d3c726f 100644 (file)
@@ -65,8 +65,7 @@ short IMB_saveiff(struct ImBuf *ibuf,char *naam,int flags)
 
        /* Put formats that take a filename here */
        if (IS_jpg(ibuf)) {
-               if(imb_savejpeg(ibuf, naam, flags)) return (0);
-               else return (TRUE);
+               return imb_savejpeg(ibuf, naam, flags);
        }
        if (IS_png(ibuf)) {
                return imb_savepng(ibuf,naam,flags);