From 6341dac5c7d0447f7b8e4628481db6ff132e4518 Mon Sep 17 00:00:00 2001 From: barry Date: Wed, 20 Sep 2017 19:33:32 -0700 Subject: [PATCH] Added back the bulk initialization for stack-allocated face-varying offsets --- opensubdiv/far/patchTableFactory.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/opensubdiv/far/patchTableFactory.cpp b/opensubdiv/far/patchTableFactory.cpp index 5290559d..3a57e4a4 100644 --- a/opensubdiv/far/patchTableFactory.cpp +++ b/opensubdiv/far/patchTableFactory.cpp @@ -1005,6 +1005,7 @@ PatchTableFactory::createUniform(TopologyRefiner const & refiner, Options option if (context.RequiresFVarPatches()) { levelFVarVertOffsets = (Index *)alloca(context.fvarChannelIndices.size()*sizeof(Index)); + memset(levelFVarVertOffsets, 0, context.fvarChannelIndices.size()*sizeof(Index)); fptr = (Index **)alloca(context.fvarChannelIndices.size()*sizeof(Index *)); fpptr = (PatchParam **)alloca(context.fvarChannelIndices.size()*sizeof(PatchParam *));