diff --git a/components/terrain/buffercache.cpp b/components/terrain/buffercache.cpp index 2a72ea59b..a72dac026 100644 --- a/components/terrain/buffercache.cpp +++ b/components/terrain/buffercache.cpp @@ -219,7 +219,7 @@ namespace Terrain osg::ref_ptr buffer; - if (verts*verts > (0xffffu)) + if (verts*verts <= (0xffffu)) buffer = createIndexBuffer(flags, verts); else buffer = createIndexBuffer(flags, verts);