mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-02 00:42:08 +00:00
Fix buffer overflow in FTexture::GenerateBgraMipmaps
This commit is contained in:
parent
2f512e54cd
commit
3c8719f945
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue