i think i have discovered a subtle bug in the CPLYMeshFileLoader.
Code: Select all
CDynamicMeshBuffer *mb = new CDynamicMeshBuffer(video::EVT_STANDARD, vertCount > 65565 ? video::EIT_32BIT : video::EIT_16BIT);
Edit:
CNullDriver checks for
Code: Select all
if ((iType==EIT_16BIT) && (vertexCount>65536))
Code: Select all
if (clippedIndices.size() + tClpBuf.size() < 65535)
Code: Select all
if (numVertices <= 65536)