mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2025-01-11 09:00:08 +00:00
Fixing crash of glShareTopology when switching to uniform subdivision.
This commit is contained in:
parent
3ab9d9693e
commit
0ca61278a5
@ -622,7 +622,9 @@ createOsdMesh( const std::string &shapeStr, int level, Scheme scheme=kCatmark )
|
|||||||
if (doAdaptive) {
|
if (doAdaptive) {
|
||||||
refiner->RefineAdaptive(Far::TopologyRefiner::AdaptiveOptions(level));
|
refiner->RefineAdaptive(Far::TopologyRefiner::AdaptiveOptions(level));
|
||||||
} else {
|
} 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;
|
Far::StencilTables const * vertexStencils=0, * varyingStencils=0;
|
||||||
|
Loading…
Reference in New Issue
Block a user