Merged changes in the trunk up to revision 42116.
[blender.git] / source / blender / imbuf / intern / jpeg.c
index 5a40de0a65e280973e94fcc22082a15d57d89fa8..a43a8672651c1defbba95c67cdff2d8501851374 100644 (file)
@@ -572,8 +572,12 @@ static int init_jpeg(FILE * outfile, struct jpeg_compress_struct * cinfo, struct
 
        cinfo->in_color_space = JCS_RGB;
        if (ibuf->planes == 8) cinfo->in_color_space = JCS_GRAYSCALE;
+#if 0
+       /* just write RGBA as RGB,
+        * unsupported feature only confuses other s/w */
+
        if (ibuf->planes == 32) cinfo->in_color_space = JCS_UNKNOWN;
-       
+#endif
        switch(cinfo->in_color_space){
        case JCS_RGB:
                cinfo->input_components = 3;