move global pools into gfx driver
prevents double copy problems saves memory (needs to be optimized...)
This commit is contained in:
@@ -199,8 +199,8 @@ int main(int argc, char** argv) {
|
||||
RightStick.pColor = "#00ffff";
|
||||
while (pOs->Mainloop()) {
|
||||
PD::Hid::Update();
|
||||
PD::Gfx::Reset(); // needs to be on top now
|
||||
pOs->ClearViewPort();
|
||||
PD::Li::ResetPools(); // Move to other place (or refactor this)
|
||||
app.Update(pOs->GetViewport(), pList);
|
||||
pList.SetFontscale(0.7);
|
||||
if (PD::Hid::IsEvent(PD::Hid::Event::Down, PD::Hid::Gamepad::CPLeft |
|
||||
@@ -263,7 +263,6 @@ int main(int argc, char** argv) {
|
||||
pList.PathAdd(PD::fvec2(1000, 360));
|
||||
|
||||
pList.PathStroke("#ff00ff", 10, LiDrawFlags_AA);
|
||||
PD::Gfx::Reset();
|
||||
PD::Gfx::Draw(pList);
|
||||
pList.Clear();
|
||||
pOs->SwapBuffers();
|
||||
|
||||
Reference in New Issue
Block a user