Skip to content

Commit

Permalink
Clear color on GL
Browse files Browse the repository at this point in the history
  • Loading branch information
enen92 committed Oct 28, 2024
1 parent 2fbee7b commit bc3f548
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pingpong.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ bool CPingPong::Draw(CRenderD3D* render)
idx[6*j+5] = 4*j;
}

glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT);

glBindBuffer(GL_ARRAY_BUFFER, m_vertexVBO);
glBufferData(GL_ARRAY_BUFFER, sizeof(TRenderVertex)*12, &vert[0], GL_STATIC_DRAW);

Expand Down

0 comments on commit bc3f548

Please sign in to comment.