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 5a762af commit 326648e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/GreyNetic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,9 @@ void CScreensaverGreyNetic::Render()
g_pContext->IASetVertexBuffers(0, 1, &g_pVBuffer, &strides, &offsets);
g_pContext->PSSetShader(g_pPShader, NULL, 0);
#else
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT);

glBindBuffer(GL_ARRAY_BUFFER, m_vertexVBO);

glVertexAttribPointer(m_aPositionLoc, 3, GL_FLOAT, 0, sizeof(MYCUSTOMVERTEX), BUFFER_OFFSET(offsetof(MYCUSTOMVERTEX, x)));
Expand Down

0 comments on commit 326648e

Please sign in to comment.