From fa65f637ad4e90f479786050f01e166a2eeaaf39 Mon Sep 17 00:00:00 2001 From: Stefanos Kornilios Mitsis Poiitidis Date: Mon, 6 Jan 2025 13:40:31 +0200 Subject: [PATCH] Fix AllocateBoatWakeArray, it needs RpGeometryCreate with HAS_TRIANGLES --- src/renderer/WaterLevel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer/WaterLevel.cpp b/src/renderer/WaterLevel.cpp index 37f38b9a..945abc2c 100644 --- a/src/renderer/WaterLevel.cpp +++ b/src/renderer/WaterLevel.cpp @@ -1479,7 +1479,8 @@ CWaterLevel::AllocateBoatWakeArray() apGeomArray[geom] = RpGeometryCreate(9*9, 8*8*2, rpGEOMETRYTRISTRIP | rpGEOMETRYPRELIT | rpGEOMETRYMODULATEMATERIALCOLOR - | rpGEOMETRYTEXTURED); + | rpGEOMETRYTEXTURED + | rw::Geometry::HAS_TRIANGLES/* RW_DC specific */); ASSERT(apGeomArray[geom] != nil); RpTriangle *geomTriangles = RpGeometryGetTriangles(apGeomArray[geom]);