From 71ac212dc7dddf5e69365c33b574c206cdf082af Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Mon, 30 May 2022 16:15:15 +0200 Subject: [PATCH] elan: disable texture for vertices without UV coordinates Fixes initial D white transparent quad at start of race --- core/hw/pvr/elan.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/hw/pvr/elan.cpp b/core/hw/pvr/elan.cpp index 0c78c1da7..0fba16add 100644 --- a/core/hw/pvr/elan.cpp +++ b/core/hw/pvr/elan.cpp @@ -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;