mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-27 05:50:05 +00:00
Fix unused variable build warnings (gcc 4.8.2 - Fedora 19)
This commit is contained in:
parent
57ab6fc1ac
commit
a565526977
@ -498,6 +498,7 @@ initializeShapes( ) {
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#ifdef calcNormals
|
||||
static void
|
||||
calcNormals(OsdHbrMesh * mesh, std::vector<float> const & pos, std::vector<float> & result ) {
|
||||
|
||||
@ -526,6 +527,7 @@ calcNormals(OsdHbrMesh * mesh, std::vector<float> const & pos, std::vector<float
|
||||
for (int i = 0; i < nverts; ++i)
|
||||
normalize( &result[i*3] );
|
||||
}
|
||||
#endif
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
static void
|
||||
|
@ -907,7 +907,6 @@ OsdPtexMipmapTextureLoader::optimizePacking(int maxNumPages,
|
||||
for (BlockArray::iterator it = _blocks.begin(); it != _blocks.end(); ++it) {
|
||||
int face = it->index;
|
||||
uint16_t adjSizeDiffs = 0;
|
||||
Ptex::Res baseRes = Ptex::Res(it->ulog2, it->vlog2);
|
||||
for (int edge = 0; edge < 4; ++edge) {
|
||||
int levelDiff = getLevelDiff(face, edge);
|
||||
adjSizeDiffs <<= 4;
|
||||
|
Loading…
Reference in New Issue
Block a user