mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-14 06:58:07 +00:00
deb64d36fc
glDrawRangeElements needs to know the range of vertexs that are used by the index array. With VBOs it doesn't really matter if the range is wrong (all the vertexes are in GPU memory anyway), but with CPU vertex arrays the driver has to memcpy the given range of data, so incorrect bounds will result in garbage data being rendered. With gentangents, the rendered mesh can have more vertexes than the original CModelDef, but was rendered with the CModelDef's vertex count. Use the correct vertex count instead. Refs #2050. This was SVN commit r13734.