Skip to content

Commit fb92ade

Browse files
PenLayer: Make sure FBO is bound when clearing in setEngine()
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 3ea17ae commit fb92ade

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
@@ -102,7 +102,9 @@ void PenLayer::setEngine(libscratchcpp::IEngine *newEngine)
102102
m_glF->glBindBuffer(GL_ARRAY_BUFFER, 0);
103103
}
104104

105+
beginFrame();
105106
clear();
107+
endFrame();
106108
}
107109

108110
emit engineChanged();

0 commit comments

Comments
 (0)