Fixed VS2010 build errors.

This commit is contained in:
David G. Yu 2013-11-06 13:52:43 -08:00
parent 40b564e1f9
commit 9ad6b117c7
2 changed files with 4 additions and 4 deletions

View File

@ -265,7 +265,7 @@ PxOsdUtilSubdivTopology::ParseFromObjString(
}
}
numVertices = pointPositions->size()/3;
numVertices = (int)pointPositions->size()/3;
return true;
}

View File

@ -137,7 +137,7 @@ PxOsdUtilUniformEvaluator::Initialize(
// One element in the vertex buffer for each
// named vertex varying attribute in the unrefined mesh
_vvBuffer = OsdCpuVertexBuffer::Create(
vvNames.size(), hmesh->GetNumVertices());
(int)vvNames.size(), hmesh->GetNumVertices());
// zeros
memset( _vvBuffer->BindCpuBuffer(), 0,
@ -162,7 +162,7 @@ PxOsdUtilUniformEvaluator::Initialize(
// One element in the vertex buffer for each
// named vertex varying attribute in the refined mesh
_vvBuffer = OsdCpuVertexBuffer::Create(
vvNames.size(), fmesh->GetNumVertices());
(int)vvNames.size(), fmesh->GetNumVertices());
// zeros
memset( _vvBuffer->BindCpuBuffer(), 0,
@ -311,7 +311,7 @@ PxOsdUtilUniformEvaluator::GetRefinedVVData(
}
int numElements = GetTopology().vvNames.size();
int numElements = (int)GetTopology().vvNames.size();
if (numElementsRetVal)
*numElementsRetVal = numElements;