- change subsector gbuffer to use a 8x8 block memory layout to avoid having to clip memory reads and writes

This commit is contained in:
Magnus Norddahl 2017-04-01 23:21:06 +02:00
commit 4a9dffa70d
3 changed files with 71 additions and 101 deletions

View file

@ -48,7 +48,8 @@ void PolySubsectorGBuffer::Resize(int newwidth, int newheight)
{
width = newwidth;
height = newheight;
values.resize(width * height);
int count = BlockWidth() * BlockHeight();
values.resize(count * 64);
}
/////////////////////////////////////////////////////////////////////////////