Skip to content

Commit e323d27

Browse files
committed
needs to be in block dimensions
1 parent 7240068 commit e323d27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/nbl/asset/filters/CBasicImageFilterCommon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ class NBL_API CBasicImageFilterCommon
278278
// compute new offset
279279
{
280280
const auto strides = referenceRegion->getByteStrides(blockInfo);
281-
const core::vector3du32_SIMD offsetInOffset = offset-resultOffset;
281+
const core::vector3du32_SIMD offsetInOffset = blockInfo.convertTexelsToBlocks(offset-resultOffset);
282282
newRegion.bufferOffset += referenceRegion->getLocalByteOffset(offsetInOffset,strides);
283283
}
284284

0 commit comments

Comments
 (0)