Fix buffer overflow in FTexture::GenerateBgraMipmaps

This commit is contained in:
Magnus Norddahl 2016-08-08 22:35:26 +02:00
parent 2f512e54cd
commit 3c8719f945
1 changed files with 1 additions and 1 deletions

View File

@ -482,7 +482,7 @@ void FTexture::GenerateBgraMipmaps()
if (a < 0) a = h - 1;
if (a == h) a = 0;
if (b < 0) b = w - 1;
if (b == h) b = 0;
if (b == w) b = 0;
c = c + dest[a + b * h];
}
}