Fix a bug that caused a crash when shadows were enabled

This commit is contained in:
2021-01-15 10:39:35 +01:00
parent b2774e57de
commit 831c726f4d

View File

@@ -38,7 +38,7 @@ void Entity::drawDirectionalShadows(glm::mat4 viewProjMatrix, ShaderProgram *p_s
p_shaderProgram->bind();
glm::mat4 modelViewProj = viewProjMatrix * modelMatrix;
shaderProgram->setUniform("u_modelViewProjMatrix", modelViewProj); // wtf is this
p_shaderProgram->setUniform("u_modelViewProjMatrix", modelViewProj);
// Draw the model
model->drawWithoutTextures();