Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial 3 - Loop does not clear GL_DEPTH_BUFFER_BIT #82

Open
DrewImm opened this issue Jan 15, 2019 · 1 comment
Open

Tutorial 3 - Loop does not clear GL_DEPTH_BUFFER_BIT #82

DrewImm opened this issue Jan 15, 2019 · 1 comment

Comments

@DrewImm
Copy link

DrewImm commented Jan 15, 2019

https://github.com/opengl-tutorials/ogl/blob/master/tutorial03_matrices/tutorial03.cpp#L100

In the render loop, glClear( GL_COLOR_BUFFER_BIT) is called. This leads to no output, which I was able to fix by changing to glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)

@DrewImm
Copy link
Author

DrewImm commented Jan 15, 2019

Pull request: #83

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant