mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-30 20:13:22 +08:00
Fix bug: glDisable(GL_DEPTH) -> glDisable(GL_DEPTH_TEST)
This commit is contained in:
@@ -273,7 +273,7 @@ int main(int argc, char* argv[])
|
|||||||
// -----
|
// -----
|
||||||
|
|
||||||
// set render states
|
// 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
|
glDepthMask(GL_TRUE); // enable depth writes so glClear won't ignore clearing the depth buffer
|
||||||
glDisable(GL_BLEND);
|
glDisable(GL_BLEND);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user