forked from teamnwah/openmw-tes3coop
Fix inverted check for 16-bit indices
This commit is contained in:
parent
e2dc46c92e
commit
7071d286e8
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ namespace Terrain
|
|||
|
||||
osg::ref_ptr<osg::DrawElements> buffer;
|
||||
|
||||
if (verts*verts > (0xffffu))
|
||||
if (verts*verts <= (0xffffu))
|
||||
buffer = createIndexBuffer<osg::DrawElementsUShort>(flags, verts);
|
||||
else
|
||||
buffer = createIndexBuffer<osg::DrawElementsUInt>(flags, verts);
|
||||
|
|
Loading…
Reference in a new issue