Draw 8-bit software renderer with polybackend (well, sort of!)

This commit is contained in:
Magnus Norddahl 2019-12-02 01:07:28 +01:00
commit 44c2223c2f
6 changed files with 10 additions and 15 deletions

View file

@ -101,6 +101,7 @@ void PolyHardwareTexture::AllocateBuffer(int w, int h, int texelsize)
{
mCanvas.reset(new DCanvas(0, 0, texelsize == 4));
mCanvas->Resize(w, h, false);
bufferpitch = mCanvas->GetPitch();
}
}