From b06138b464480987ee52811e93ca8cd29e65a34a Mon Sep 17 00:00:00 2001 From: Triang3l Date: Sat, 21 Nov 2020 21:52:17 +0300 Subject: [PATCH] [GPU] Disable faceness for rectangles temporarily --- src/xenia/gpu/xenos.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/xenia/gpu/xenos.h b/src/xenia/gpu/xenos.h index d3a78a850..4117a8293 100644 --- a/src/xenia/gpu/xenos.h +++ b/src/xenia/gpu/xenos.h @@ -82,7 +82,6 @@ constexpr bool IsPrimitivePolygonal(bool tessellated, PrimitiveType type) { case PrimitiveType::kTriangleFan: case PrimitiveType::kTriangleStrip: case PrimitiveType::kTriangleWithWFlags: - case PrimitiveType::kRectangleList: case PrimitiveType::kQuadList: case PrimitiveType::kQuadStrip: case PrimitiveType::kPolygon: @@ -90,6 +89,10 @@ constexpr bool IsPrimitivePolygonal(bool tessellated, PrimitiveType type) { default: break; } + // TODO(Triang3l): Investigate how kRectangleList should be treated - possibly + // actually drawn as two polygons on the console, however, the current + // geometry shader doesn't care about the winding order - allowing backface + // culling for rectangles currently breaks Gears of War 2. return false; }