Merge pull request #1010 from barfowl/varying_patch_descriptor

Fix initialization of PatchTable's varying patch descriptor
This commit is contained in:
David G Yu 2018-10-20 13:32:37 -07:00 committed by GitHub
commit 968f6e001c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -446,6 +446,8 @@ PatchTableBuilder::PatchTableBuilder(
_table->_varyingPrecisionIsDouble = _options.setPatchPrecisionDouble;
_table->_faceVaryingPrecisionIsDouble = _options.setFVarPatchPrecisionDouble;
_table->_varyingDesc = PatchDescriptor(_patchBuilder->GetLinearPatchType());
// State and helper to support LegacyGregory arrays in the PatchTable:
_requiresLegacyGregoryTables = !_refiner.IsUniform() &&
(_options.GetEndCapType() == Options::ENDCAP_LEGACY_GREGORY);