fixed crash when compiling a mesh without a material
This commit is contained in:
parent
4a792fbadf
commit
da4906452d
@ -92,8 +92,8 @@ unsigned int Mesh::updateFlags()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
m_flags |= 1 << MESH_2D;
|
m_flags |= 1 << MESH_2D;
|
||||||
|
|
||||||
return m_flags | material->getFlags();
|
return m_flags | (material ? material->getFlags() : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Mesh::initGL()
|
void Mesh::initGL()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user