mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-12-26 01:31:13 +00:00
Merge pull request #477 from davidgyu/winbuildfix
Fixed an alloca buffer overrun error in Far
This commit is contained in:
commit
c11041f93d
@ -1294,7 +1294,7 @@ PatchTablesFactory::populateAdaptivePatches(
|
||||
int * levelFVarVertOffsets = 0;
|
||||
if (context.RequiresFVarPatches()) {
|
||||
int nchannels = refiner.GetNumFVarChannels();
|
||||
levelFVarVertOffsets = (int *)alloca(nchannels);
|
||||
levelFVarVertOffsets = (int *)alloca(nchannels*sizeof(int));
|
||||
memset(levelFVarVertOffsets, 0, nchannels*sizeof(int));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user