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

@ -93,7 +93,7 @@ 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()