Skip to content
Snippets Groups Projects
Commit da2b6f2c authored by Sryder's avatar Sryder
Browse files

Fix certain textures with holes in

see: CEZ1 skybox in linear filtermodes.
parent d96eaa76
No related merge requests found
......@@ -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 :(
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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment