Permalink
Browse files

Fixed smallTile test as it was checking against <=2^14 rather than <2…

…^16 which is more conservative than required for a ushort container
  • Loading branch information...
1 parent 3cccdad commit 1af1b4dfdae520b144a6c1d247103ecf57390fc2 @robertosfield robertosfield committed Jan 7, 2017
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/osgTerrain/GeometryPool.cpp
  2. +1 −1 src/osgTerrain/GeometryTechnique.cpp
@@ -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;

0 comments on commit 1af1b4d

Please sign in to comment.