Fixed smallTile test as it was checking against <=2^14 rather than <2^16 which is more conservative than required for a ushort container

This commit is contained in:
Robert Osfield
2017-01-07 13:03:22 +00:00
parent 3cccdaddab
commit 1af1b4dfda
2 changed files with 2 additions and 2 deletions

View File

@@ -262,7 +262,7 @@ osg::ref_ptr<SharedGeometry> GeometryPool::getOrCreateGeometry(osgTerrain::Terra
}
}
bool smallTile = numVertices <= 16384;
bool smallTile = numVertices < 65536;
GLenum primitiveTypes = GL_QUADS;

View File

@@ -994,7 +994,7 @@ void GeometryTechnique::generateGeometry(BufferData& buffer, Locator* masterLoca
// populate the primitive data
//
bool swapOrientation = !(masterLocator->orientationOpenGL());
bool smallTile = numVertices <= 16384;
bool smallTile = numVertices < 65536;
// OSG_NOTICE<<"smallTile = "<<smallTile<<std::endl;