Fixing crash of glShareTopology when switching to uniform subdivision.

This commit is contained in:
Takahito Tejima 2015-01-12 16:59:44 -08:00
parent 3ab9d9693e
commit 0ca61278a5

View File

@ -622,7 +622,9 @@ createOsdMesh( const std::string &shapeStr, int level, Scheme scheme=kCatmark )
if (doAdaptive) {
refiner->RefineAdaptive(Far::TopologyRefiner::AdaptiveOptions(level));
} else {
refiner->RefineUniform(Far::TopologyRefiner::UniformOptions(level));
Far::TopologyRefiner::UniformOptions options(level);
options.fullTopologyInLastLevel = true;
refiner->RefineUniform(options);
}
Far::StencilTables const * vertexStencils=0, * varyingStencils=0;