diff --git a/src/8.guest/2020/oit/weighted_blended.cpp b/src/8.guest/2020/oit/weighted_blended.cpp index 0030244..b382f37 100644 --- a/src/8.guest/2020/oit/weighted_blended.cpp +++ b/src/8.guest/2020/oit/weighted_blended.cpp @@ -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; -} \ No newline at end of file +}