fix AV when drawing Model glow pass for Model that doesn't isn't using temp vertices

This commit is contained in:
Chris Danford
2004-02-08 20:42:50 +00:00
parent eb96023eec
commit e28cdd3d6d
+1 -1
View File
@@ -536,7 +536,7 @@ void Model::DrawPrimitives()
for (int i = 0; i < (int)m_pGeometry->m_Meshes.size(); i++)
{
msMesh *pMesh = &m_pGeometry->m_Meshes[i];
RageModelVertexVector& TempVertices = m_vTempVerticesByMesh[i];
RageModelVertexVector& TempVertices = bUseTempVertices ? m_vTempVerticesByMesh[i] : pMesh->Vertices;
// apply material
if( pMesh->nMaterialIndex != -1 )