mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-05 15:40:10 +00:00
Fix inverted check for 16-bit indices
This commit is contained in:
parent
e2dc46c92e
commit
7071d286e8
@ -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…
x
Reference in New Issue
Block a user