We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0daf6f commit 81dc992Copy full SHA for 81dc992
1 file changed
src/penlayer.cpp
@@ -102,9 +102,15 @@ void PenLayer::setEngine(libscratchcpp::IEngine *newEngine)
102
m_glF->glBindBuffer(GL_ARRAY_BUFFER, 0);
103
}
104
105
- beginFrame();
+ bool wasBound = m_fbo->isBound();
106
+
107
+ if (wasBound)
108
+ beginFrame();
109
110
clear();
- endFrame();
111
112
113
+ endFrame();
114
115
116
emit engineChanged();
0 commit comments