Fix certain textures with holes in

see: CEZ1 skybox in linear filtermodes.
This commit is contained in:
Sryder13 2014-09-03 02:10:47 +01:00
parent d96eaa768c
commit da2b6f2c01

View file

@ -452,7 +452,7 @@ static void HWR_GenerateTexture(INT32 texnum, GLTexture_t *grtex)
//Hurdler: not efficient at all but I don't remember exactly how HWR_DrawPatchInCache works :( //Hurdler: not efficient at all but I don't remember exactly how HWR_DrawPatchInCache works :(
if (format2bpp[grtex->mipmap.grInfo.format]==4) if (format2bpp[grtex->mipmap.grInfo.format]==4)
{ {
for (i = 3; i < blocksize; i += 4) for (i = 3; i < blocksize*4; i += 4) // blocksize*4 because blocksize doesn't include the bpp
{ {
if (block[i] == 0) if (block[i] == 0)
{ {