hardware: start the surf as clean

This commit is contained in:
Alam Ed Arias 2016-05-27 01:19:16 -04:00
parent 4c6a807283
commit 008be7c90d

View file

@ -3280,6 +3280,7 @@ static void HWR_AddPolyObjectPlanes(void)
if (po_ptrs[i]->translucency > 0)
{
FSurfaceInfo Surf;
memset(&Surf, 0x00, sizeof(Surf));
FBITFIELD blendmode = HWR_TranstableToAlpha(po_ptrs[i]->translucency, &Surf);
HWR_AddTransparentPolyobjectFloor(levelflats[polyobjsector->ceilingpic].lumpnum, po_ptrs[i], polyobjsector->ceilingheight,
polyobjsector->lightlevel, Surf.FlatColor.s.alpha, polyobjsector, blendmode, NULL);