From fd073cdae713e947b8302e8e5f3fed25957a1ec1 Mon Sep 17 00:00:00 2001 From: RSDuck Date: Mon, 17 Apr 2023 21:13:38 +0200 Subject: [PATCH] correct edge filling behaviour when AA is disabled --- src/GPU3D_Compute_shaders.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GPU3D_Compute_shaders.h b/src/GPU3D_Compute_shaders.h index 65ec4f12..bcf57b2e 100644 --- a/src/GPU3D_Compute_shaders.h +++ b/src/GPU3D_Compute_shaders.h @@ -683,7 +683,7 @@ void main() xspan.InsideEnd = xspan.X1; bool isShadowMask = ((polygon.Attr & 0x3F000030U) == 0x00000030U); - bool fillAllEdges = /*polyalpha < 31*/true; + bool fillAllEdges = polyalpha < 31 || (DispCnt & (3U<<4)) != 0U; if (fillAllEdges || spanL.X1 < spanL.X0 || spanL.Increment <= 0x40000) xspan.Flags |= XSpanSetup_FillLeft;