diff options
-rw-r--r-- | source/blender/src/writeimage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/writeimage.c b/source/blender/src/writeimage.c index 6239f980335..a1578bd0dec 100644 --- a/source/blender/src/writeimage.c +++ b/source/blender/src/writeimage.c @@ -126,7 +126,7 @@ static void save_rendered_image_cb_real(char *name, int zbuf) end = ibuf->x * ibuf->y; for(pixel = 0; pixel < end; pixel++, pixf+=4, pixc+=4) { - pixf[0] = pixf[1] = pixf[2] = pixf[3] = 1-rres.rectz[pixel]/100000000000; + pixf[0] = pixf[1] = pixf[2] = pixf[3] = 1-rres.rectz[pixel]/100000000000.0; pixc[0] = pixc[1] = pixc[2] = pixc[3] = FTOCHAR(rres.rectz[pixel]); } ibuf->zbuf_float= rres.rectz; |