fix MSVC debug crash

uniform mode : check actual fvarwidth instead of requireFVarData
(same pattern as face-varying)

fixes #191
This commit is contained in:
manuelk 2013-07-10 15:46:16 -07:00
parent f079e57f96
commit 2cb6119560

View File

@ -313,7 +313,7 @@ FarPatchTablesFactory<T>::Create( HbrMesh<T> const * mesh, FacesList const & fli
unsigned int * iptr = &result->_patches[0];
FarPatchParam * pptr = &result->_paramTable[0];
float * fptr = requireFVarData ? &result->_fvarTable[0] : 0;
float * fptr = fvarwidth>0 ? &result->_fvarTable[0] : 0;
for (int level=firstArray; level<(int)flist.size(); ++level) {
@ -327,7 +327,7 @@ FarPatchTablesFactory<T>::Create( HbrMesh<T> const * mesh, FacesList const & fli
pptr = computePatchParam(f, pptr);
if (requireFVarData)
if (fvarwidth>0)
fptr = computeFVarData(f, fvarwidth, fptr, /*isAdaptive=*/false);
}
}