elan: disable texture for vertices without UV coordinates

Fixes initial D white transparent quad at start of race
This commit is contained in:
Flyinghead 2022-05-30 16:15:15 +02:00
parent 2319a00c4f
commit 71ac212dc7
1 changed files with 2 additions and 2 deletions

View File

@ -1319,7 +1319,7 @@ static void sendPolygon(ICHList *list)
{
PolyParam pp{};
pp.pcw.Shadow = list->pcw.shadow;
pp.pcw.Texture = list->pcw.texture;
pp.pcw.Texture = 0;
pp.pcw.Offset = list->pcw.offset;
pp.pcw.Gouraud = list->pcw.gouraud;
pp.pcw.Volume = list->pcw.volume;
@ -1395,7 +1395,7 @@ static void sendPolygon(ICHList *list)
break;
PolyParam pp{};
pp.pcw.Shadow = list->pcw.shadow;
pp.pcw.Texture = list->pcw.texture;
pp.pcw.Texture = 0;
pp.pcw.Offset = list->pcw.offset;
pp.pcw.Gouraud = list->pcw.gouraud;
pp.pcw.Volume = list->pcw.volume;