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:
@@ -262,7 +262,7 @@ osg::ref_ptr<SharedGeometry> GeometryPool::getOrCreateGeometry(osgTerrain::Terra
|
||||
}
|
||||
}
|
||||
|
||||
bool smallTile = numVertices <= 16384;
|
||||
bool smallTile = numVertices < 65536;
|
||||
|
||||
GLenum primitiveTypes = GL_QUADS;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user