mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 04:11:18 +00:00
OpenGL Translucent Midtexture Fix
Translucent Midtextures using holes with textures in them now work when there is no FOF's above their sector.
This commit is contained in:
parent
fc12fc7cd4
commit
56fbdfdad3
1 changed files with 2 additions and 2 deletions
|
@ -1654,12 +1654,12 @@ static void HWR_StoreWallRange(double startfrac, double endfrac)
|
|||
break;
|
||||
}
|
||||
if (grTex->mipmap.flags & TF_TRANSPARENT)
|
||||
blendmode = PF_Environment;
|
||||
blendmode = PF_Translucent;
|
||||
|
||||
if (gr_frontsector->numlights)
|
||||
{
|
||||
if (!(blendmode & PF_Masked))
|
||||
HWR_SplitWall(gr_frontsector, wallVerts, gr_midtexture, &Surf, FF_CUTSOLIDS|FF_TRANSLUCENT);
|
||||
HWR_SplitWall(gr_frontsector, wallVerts, gr_midtexture, &Surf, FF_TRANSLUCENT);
|
||||
else
|
||||
HWR_SplitWall(gr_frontsector, wallVerts, gr_midtexture, &Surf, FF_CUTSOLIDS);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue