Change to one pass rendering to remove fuzz artifact

This commit is contained in:
Magnus Norddahl 2016-06-18 05:20:34 +02:00
commit e7cdcd9c0a
2 changed files with 6 additions and 4 deletions

View file

@ -624,8 +624,6 @@ public:
// Handle the case where we would go out of bounds at the top:
if (yl < fuzzstep)
{
count--;
uint32_t bg = dest[fuzzoffset[fuzz] * fuzzstep + pitch];
uint32_t bg_red = (bg >> 16) & 0xff;
uint32_t bg_green = (bg >> 8) & 0xff;
@ -639,6 +637,10 @@ public:
dest += pitch;
fuzz += fuzzstep;
fuzz %= FUZZTABLE;
count--;
if (count == 0)
return;
}
bool lowerbounds = (yl + count * fuzzstep > _fuzzviewheight);