reset pools on newframe

This commit is contained in:
2026-09-03 08:12:34 +02:00
parent 54584728c3
commit f1540f0098
3 changed files with 10 additions and 7 deletions
+2 -1
View File
@@ -199,7 +199,7 @@ int main(int argc, char** argv) {
RightStick.pColor = "#00ffff";
while (pOs->Mainloop()) {
PD::Hid::Update();
PD::Gfx::Reset(); // needs to be on top now
PD::Gfx::NewFrame();
pOs->ClearViewPort();
app.Update(pOs->GetViewport(), pList);
pList.SetFontscale(0.7);
@@ -263,6 +263,7 @@ int main(int argc, char** argv) {
pList.PathAdd(PD::fvec2(1000, 360));
pList.PathStroke("#ff00ff", 10, LiDrawFlags_AA);
PD::Gfx::Reset(); // needs to be on top now
PD::Gfx::Draw(pList);
pList.Clear();
pOs->SwapBuffers();