Skip to content

Commit 9cc4778

Browse files
committed
PenLayer: Disable scissor test in clear()
1 parent 8b62687 commit 9cc4778

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/penlayer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,10 @@ void scratchcpprender::PenLayer::clear()
6565
return;
6666

6767
m_fbo->bind();
68+
glDisable(GL_SCISSOR_TEST);
6869
glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
6970
glClear(GL_COLOR_BUFFER_BIT);
71+
glEnable(GL_SCISSOR_TEST);
7072
m_fbo->release();
7173

7274
update();

0 commit comments

Comments
 (0)