if I add this one assert, it seems to stop models from crashing my video card.

This commit is contained in:
AJ Kelly
2010-12-22 12:13:04 -06:00
parent 069bd6cca2
commit 121a51113e
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -460,6 +460,7 @@ void Model::DrawPrimitives()
void Model::DrawMesh( int i ) const
{
const msMesh *pMesh = &m_pGeometry->m_Meshes[i];
ASSERT(pMesh);
// apply mesh-specific bone (if any)
if( pMesh->m_iBoneIndex != -1 )