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
+4
View File
@@ -13,6 +13,10 @@ _____________________________________________________________________________
sm-ssc v1.2 | 201012xx
--------------------------------------------------------------------------------
20101222
--------
* Attempt to fix crashes with models on certain video cards. [freem]
20101221
--------
* SM5SVN r28586: Only unload fonts if not used by the next screen. [shakesoda]
+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 )