fixed crash when compiling a mesh without a material

This commit is contained in:
Anselme 2016-09-18 22:08:40 +02:00
parent 4a792fbadf
commit da4906452d

View File

@ -92,8 +92,8 @@ unsigned int Mesh::updateFlags()
}
else
m_flags |= 1 << MESH_2D;
return m_flags | material->getFlags();
return m_flags | (material ? material->getFlags() : 0);
}
void Mesh::initGL()