Skip to content

Commit

Permalink
Restore stencil test func to defaults once done with stencil operations.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyDeVries committed May 26, 2020
1 parent 1385c8a commit 7f41f1f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ int main()
glDrawArrays(GL_TRIANGLES, 0, 36);
glBindVertexArray(0);
glStencilMask(0xFF);
glStencilFunc(GL_ALWAYS, 0, 0xFF);
glEnable(GL_DEPTH_TEST);

// glfw: swap buffers and poll IO events (keys pressed/released, mouse moved etc.)
Expand Down

0 comments on commit 7f41f1f

Please sign in to comment.