Skip to content

Tutorial 3 - Loop does not clear GL_DEPTH_BUFFER_BIT #82

Description

@DrewImm

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions