Skip to content

Commit c3cba4e

Browse files
committed
handle image manipulation
1 parent 0d88e39 commit c3cba4e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

include/nbl/asset/filters/CFlattenRegionsImageFilter.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ class CFlattenRegionsImageFilter : public CImageFilter<CFlattenRegionsImageFilte
165165
if (!CCopyImageFilter::execute(policy,&copy))
166166
return false;
167167
}
168+
169+
outImg->getBuffer()->setContentHash({});
170+
outImg->setContentHash(inImg->getContentHash());
168171
return true;
169172
}
170173
static inline bool execute(state_type* state)

include/nbl/asset/interchange/IImageAssetHandlerBase.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ class IImageAssetHandlerBase : public virtual core::IReferenceCounted
193193
auto stride = trueExtent.X * getTexelOrBlockBytesize(format);
194194

195195
performImageFlip(entry, end, trueExtent.Y, stride);
196+
image->setContentHash({}); //invalidate content hash
197+
image->getBuffer()->setContentHash({});
196198
}
197199

198200
static inline void performImageFlip(uint8_t* entry, uint8_t* end, uint32_t height, uint32_t rowPitch)

0 commit comments

Comments
 (0)