ImproveCacheLocality: Add assertion to silence a static analyzer warning
parent
c774e864a0
commit
95f2319b41
|
@ -223,6 +223,7 @@ float ImproveCacheLocalityProcess::ProcessMesh( aiMesh* pMesh, unsigned int mesh
|
||||||
iMaxRefTris = std::max(iMaxRefTris,*piCur);
|
iMaxRefTris = std::max(iMaxRefTris,*piCur);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ai_assert(iMaxRefTris > 0);
|
||||||
unsigned int* piCandidates = new unsigned int[iMaxRefTris*3];
|
unsigned int* piCandidates = new unsigned int[iMaxRefTris*3];
|
||||||
unsigned int iCacheMisses = 0;
|
unsigned int iCacheMisses = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue