Skip to content

Commit

Permalink
Removed redundant stencil clear call
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Bojko committed Aug 16, 2018
1 parent 6dcaeb0 commit 39ebb7b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/bluecadet/views/MaskView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ void MaskView::draw() {
gl::ScopedState scopeStencil(GL_STENCIL_TEST, GL_TRUE);
pushStencilState();

if (sStencilIndex == 0) {
gl::clear(GL_STENCIL_BUFFER_BIT);
}

++sStencilIndex;

if (sStencilIndex == sMaxNestedStencils || sStencilIndex == 1) {
Expand Down

0 comments on commit 39ebb7b

Please sign in to comment.