Skip to content

Commit d5b387a

Browse files
committed
handle clone()
1 parent a10ab3d commit d5b387a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

include/nbl/asset/ICPUBuffer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ class ICPUBuffer : public asset::IBuffer, public IPreHashed
4545
{
4646
auto cp = core::make_smart_refctd_ptr<ICPUBuffer>(m_creationParams.size);
4747
memcpy(cp->getPointer(), data, m_creationParams.size);
48+
cp->setContentHash(getContentHash());
4849
return cp;
4950
}
5051

include/nbl/asset/ICPUImage.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class NBL_API2 ICPUImage final : public IImage, public IPreHashed
3838
else
3939
cp->buffer = buffer;
4040

41+
cp->setContentHash(getContentHash());
4142
return cp;
4243
}
4344

0 commit comments

Comments
 (0)