Skip to content

Tutorial 3 - Loop does not clear GL_DEPTH_BUFFER_BIT #82

Open
@DrewImm

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)

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