[Bf-blender-cvs] [5576524] master: ImBuf: Fix typo in duplicating float z buffer

Sergey Sharybin noreply at git.blender.org
Mon Nov 16 13:22:28 CET 2015


Commit: 5576524e880305595f75cb523d5f5a07cfcd9824
Author: Sergey Sharybin
Date:   Mon Nov 16 17:22:07 2015 +0500
Branches: master
https://developer.blender.org/rB5576524e880305595f75cb523d5f5a07cfcd9824

ImBuf: Fix typo in duplicating float z buffer

===================================================================

M	source/blender/imbuf/intern/allocimbuf.c

===================================================================

diff --git a/source/blender/imbuf/intern/allocimbuf.c b/source/blender/imbuf/intern/allocimbuf.c
index a9a21b4..988f43f 100644
--- a/source/blender/imbuf/intern/allocimbuf.c
+++ b/source/blender/imbuf/intern/allocimbuf.c
@@ -521,7 +521,7 @@ ImBuf *IMB_dupImBuf(ImBuf *ibuf1)
 	if (flags & IB_zbuf)
 		memcpy(ibuf2->zbuf, ibuf1->zbuf, ((size_t)x) * y * sizeof(int));
 
-	if (flags & IB_rectfloat)
+	if (flags & IB_zbuffloat)
 		memcpy(ibuf2->zbuf_float, ibuf1->zbuf_float, ((size_t)x) * y * sizeof(float));
 
 	if (ibuf1->encodedbuffer) {




More information about the Bf-blender-cvs mailing list