Correction to recent PNG commit

Need to set default depth to 8bit.
This commit is contained in:
Sergey Sharybin
2012-12-31 14:02:33 +00:00
parent 93f78ac1e1
commit 334ca1d344
2 changed files with 2 additions and 0 deletions

View File

@@ -1309,6 +1309,7 @@ void BKE_imformat_defaults(ImageFormatData *im_format)
memset(im_format, 0, sizeof(*im_format));
im_format->planes = R_IMF_PLANES_RGB;
im_format->imtype = R_IMF_IMTYPE_PNG;
im_format->depth = R_IMF_CHAN_DEPTH_8;
im_format->quality = 90;
im_format->compress = 90;

View File

@@ -400,6 +400,7 @@ static Scene *scene_add(Main *bmain, const char *name)
sce->r.im_format.planes = R_IMF_PLANES_RGB;
sce->r.im_format.imtype = R_IMF_IMTYPE_PNG;
sce->r.im_format.depth = R_IMF_CHAN_DEPTH_8;
sce->r.im_format.quality = 90;
sce->r.im_format.compress = 90;