Fix bug: glDisable(GL_DEPTH) -> glDisable(GL_DEPTH_TEST)

This commit is contained in:
Phillip Chang
2021-05-05 23:46:21 +09:00
parent 85ee9d136f
commit 4dc5862c12

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;
}
}