diff --git a/opensubdiv/far/patchParam.h b/opensubdiv/far/patchParam.h index 1186b009..c3c96dbc 100644 --- a/opensubdiv/far/patchParam.h +++ b/opensubdiv/far/patchParam.h @@ -135,7 +135,7 @@ PatchParam::Set( Index faceid, short u, short v, ((v & 0x3ff) << 12) | ((boundary & 0xf) << 8) | ((nonquad ? 1:0) << 4) | - (nonquad ? depth+1 : depth); + (depth); } inline float diff --git a/opensubdiv/far/patchTableFactory.cpp b/opensubdiv/far/patchTableFactory.cpp index f1fe5031..f190f7ad 100644 --- a/opensubdiv/far/patchTableFactory.cpp +++ b/opensubdiv/far/patchTableFactory.cpp @@ -702,7 +702,6 @@ PatchTableFactory::computePatchParam( if (nonquad) { ptexIndex+=childIndexInParent; - --depth; } PatchParam param;