vdp, add handling of external buffers for fast renderer

This commit is contained in:
kub 2020-12-12 14:36:54 +01:00
parent 7e382f5403
commit 207e5ba0ee
3 changed files with 17 additions and 6 deletions

View file

@ -692,7 +692,15 @@ PICO_INTERNAL void PicoFrameFull()
pprof_end(draw);
}
void PicoDraw2SetOutBuf(void *dest)
{
if (dest)
Pico.est.Draw2FB = dest;
else
Pico.est.Draw2FB = PicoDraw2FB_;
}
void PicoDraw2Init(void)
{
Pico.est.Draw2FB = PicoDraw2FB_;
PicoDraw2SetOutBuf(NULL);
}