if I add this one assert, it seems to stop models from crashing my video card.
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user