From a5268a647ffd1a28bbe85b19e02eb8e7606dd15d Mon Sep 17 00:00:00 2001 From: Ryohei Nishimura Date: Mon, 6 Nov 2017 12:21:08 +0900 Subject: [PATCH] Revised an array access of Level to support MSVC --- opensubdiv/vtr/level.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/opensubdiv/vtr/level.cpp b/opensubdiv/vtr/level.cpp index 47772c15..916c12ed 100644 --- a/opensubdiv/vtr/level.cpp +++ b/opensubdiv/vtr/level.cpp @@ -1599,12 +1599,8 @@ namespace { int memberMax = _memberCountPerComp; for (int i = 0; i < _compCount; ++i) { int count = _countsAndOffsets[2*i]; - if (count == 0) - { - continue; - } - Index *dstMembers = &dstIndices[_countsAndOffsets[2*i + 1]]; + Index *dstMembers = &dstIndices[0] + _countsAndOffsets[2*i + 1]; Index *srcMembers = 0; if (count <= _memberCountPerComp) {