diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-07-12 16:07:32 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-07-12 16:07:32 +0400 |
commit | b9e241d3e3750e3e86089253bfe91fbd02a873ea (patch) | |
tree | edf76627a3317717b138e0133298f2657c930826 /source/blender/imbuf | |
parent | ac981c08afed8e79e4bff07c12b551b888020f20 (diff) |
error in last commit
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r-- | source/blender/imbuf/intern/openexr/openexr_api.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/openexr/openexr_api.cpp b/source/blender/imbuf/intern/openexr/openexr_api.cpp index 0bac4935d86..18c8bef762d 100644 --- a/source/blender/imbuf/intern/openexr/openexr_api.cpp +++ b/source/blender/imbuf/intern/openexr/openexr_api.cpp @@ -328,7 +328,7 @@ static int imb_save_openexr_float(struct ImBuf *ibuf, char *name, int flags) rect[0]= ibuf->rect_float + channels*(height-1)*width; rect[1]= rect[0]+1; rect[2]= rect[0]+2; - rect[3]= (channels >= 4)? rect[0]+3: 1.0f; + rect[3]= (channels >= 4)? rect[0]+3:rect[0]; /* red as alpha, is this needed since alpha isnt written? */ frameBuffer.insert ("R", Slice (FLOAT, (char *)rect[0], xstride, ystride)); frameBuffer.insert ("G", Slice (FLOAT, (char *)rect[1], xstride, ystride)); |