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