mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2025-01-05 22:41:09 +00:00
fix build warnigns (oddly, gcc shows nothing, despite having -Wall...)
fixes #184
This commit is contained in:
parent
11b644a06e
commit
aababd42a6
@ -612,7 +612,7 @@ FarPatchTables::GetNumFaces(int level) const {
|
||||
PatchArrayVector const & parrays = GetPatchArrayVector();
|
||||
|
||||
if (parrays.empty())
|
||||
return NULL;
|
||||
return -1;
|
||||
|
||||
if (level < 1) {
|
||||
return parrays.rbegin()->GetNumPatches();
|
||||
|
@ -771,8 +771,6 @@ evalGregoryBoundary(float u, float v,
|
||||
unsigned int im = (i+ivalence-1)%ivalence,
|
||||
ip = (i+1)%ivalence;
|
||||
|
||||
bool isBoundaryNeighbor = false;
|
||||
|
||||
int idx_neighbor = valenceTable[2*i + 0 + 1];
|
||||
int idx_diagonal = valenceTable[2*i + 1 + 1];
|
||||
int idx_neighbor_p = valenceTable[2*ip + 0 + 1];
|
||||
@ -781,7 +779,6 @@ evalGregoryBoundary(float u, float v,
|
||||
|
||||
int valenceNeighbor = vertexValenceBuffer[idx_neighbor * (2*maxValence+1)];
|
||||
if (valenceNeighbor < 0) {
|
||||
isBoundaryNeighbor = true;
|
||||
boundaryEdgeNeighbors[currNeighbor++] = idx_neighbor;
|
||||
if (currNeighbor == 1) {
|
||||
ibefore = i;
|
||||
|
Loading…
Reference in New Issue
Block a user