Skip to content

Commit 565e139

Browse files
committed
Some additions to thw window class
1 parent 757410f commit 565e139

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

application/main.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ int main()
189189
window.Update();
190190
window.Draw();
191191

192-
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // PR
193192

194193
rotation += 1.0f;
195194
}

src/Window/Window.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ namespace zap
373373
void Window::Draw()
374374
{
375375
InternSwapBuffers(); // Only executes the draw call if the target frame time is passed
376-
glClear(GL_COLOR_BUFFER_BIT);
376+
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
377377
}
378378

379379

0 commit comments

Comments
 (0)