Merge pull request #233 from lasagnaphil/master

Fix bug: glDisable(GL_DEPTH) -> glDisable(GL_DEPTH_TEST)
This commit is contained in:
Joey de Vries
2021-05-27 15:02:24 +02:00
committed by GitHub

View File

@@ -273,7 +273,7 @@ int main(int argc, char* argv[])
// -----
// set render states
glDisable(GL_DEPTH);
glDisable(GL_DEPTH_TEST);
glDepthMask(GL_TRUE); // enable depth writes so glClear won't ignore clearing the depth buffer
glDisable(GL_BLEND);
@@ -379,4 +379,4 @@ glm::mat4 calculate_model_matrix(const glm::vec3& position, const glm::vec3& rot
trans = glm::scale(trans, scale);
return trans;
}
}