fixed NULL material segfault
This commit is contained in:
parent
501ec75dd8
commit
2f7f75618f
@ -137,7 +137,8 @@ void Mesh::draw(Shader* shader, bool drawNormals, bool drawTexCoord, bool drawTa
|
||||
if(isDoubleSided)
|
||||
glDisable(GL_CULL_FACE);
|
||||
bool crappy = (shader == NULL);
|
||||
material->bindAttributes(shader);
|
||||
if(material != NULL)
|
||||
material->bindAttributes(shader);
|
||||
glBindVertexArray(vao);
|
||||
|
||||
if(crappy)
|
||||
|
Loading…
x
Reference in New Issue
Block a user