mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-10 06:10:07 +00:00
Fixed VS2010 build errors.
This commit is contained in:
parent
40b564e1f9
commit
9ad6b117c7
@ -265,7 +265,7 @@ PxOsdUtilSubdivTopology::ParseFromObjString(
|
||||
}
|
||||
}
|
||||
|
||||
numVertices = pointPositions->size()/3;
|
||||
numVertices = (int)pointPositions->size()/3;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user