mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 12:21:19 +00:00
Fix certain textures with holes in
see: CEZ1 skybox in linear filtermodes.
This commit is contained in:
parent
d96eaa768c
commit
da2b6f2c01
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue