Fixed: Build error and assert when disabling NL_FORCE_INDEX_BUFFER_16
This commit is contained in:
parent
fc644c680e
commit
112f55ee14
2 changed files with 3 additions and 2 deletions
|
@ -1867,7 +1867,7 @@ void CMeshMRMSkinnedGeom::updateRawSkinNormal(bool enabled, CMeshMRMSkinnedInst
|
||||||
CIndexBufferReadWrite ibaWrite;
|
CIndexBufferReadWrite ibaWrite;
|
||||||
skinLod.RdrPass[i].lock (ibaWrite);
|
skinLod.RdrPass[i].lock (ibaWrite);
|
||||||
#ifndef NL_SKINNED_MESH_MRM_INDEX16
|
#ifndef NL_SKINNED_MESH_MRM_INDEX16
|
||||||
nlassert(ibaWrite.getFormat() == CIndexBuffer::Indices32)
|
nlassert(ibaWrite.getFormat() == CIndexBuffer::Indices32);
|
||||||
uint32 *dstTriPtr= (uint32 *) ibaWrite.getPtr();
|
uint32 *dstTriPtr= (uint32 *) ibaWrite.getPtr();
|
||||||
uint32 numIndices= lod.RdrPass[i].PBlock.size();
|
uint32 numIndices= lod.RdrPass[i].PBlock.size();
|
||||||
for(uint j=0;j<numIndices;j++, srcTriPtr++, dstTriPtr++)
|
for(uint j=0;j<numIndices;j++, srcTriPtr++, dstTriPtr++)
|
||||||
|
|
|
@ -2083,8 +2083,9 @@ static void DuplicatePrimitiveBlock(const CIndexBuffer &srcBlock, CIndexBuffer &
|
||||||
CIndexBufferReadWrite ibaWrite;
|
CIndexBufferReadWrite ibaWrite;
|
||||||
destBlock.lock (ibaWrite);
|
destBlock.lock (ibaWrite);
|
||||||
|
|
||||||
|
#ifdef NL_FORCE_INDEX_BUFFER_16
|
||||||
nlassert(destBlock.getFormat() == CIndexBuffer::Indices16);
|
nlassert(destBlock.getFormat() == CIndexBuffer::Indices16);
|
||||||
|
#endif
|
||||||
|
|
||||||
// TMP TMP TMP
|
// TMP TMP TMP
|
||||||
if (ibaRead.getFormat() == CIndexBuffer::Indices16)
|
if (ibaRead.getFormat() == CIndexBuffer::Indices16)
|
||||||
|
|
Loading…
Reference in a new issue