ImBuf: Fix typo in duplicating float z buffer

This commit is contained in:
Sergey Sharybin
2015-11-16 17:22:07 +05:00
parent 59ed62fb5f
commit 5576524e88

View File

@@ -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) {