From 0ca61278a53f7b48ee967fc2ac2be115044f5c6e Mon Sep 17 00:00:00 2001 From: Takahito Tejima Date: Mon, 12 Jan 2015 16:59:44 -0800 Subject: [PATCH] Fixing crash of glShareTopology when switching to uniform subdivision. --- examples/glShareTopology/glShareTopology.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/glShareTopology/glShareTopology.cpp b/examples/glShareTopology/glShareTopology.cpp index 8a86da97..aa751b90 100644 --- a/examples/glShareTopology/glShareTopology.cpp +++ b/examples/glShareTopology/glShareTopology.cpp @@ -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;