From 8aabdbf2aded0aa84af7c9172a4a371abf220677 Mon Sep 17 00:00:00 2001 From: wlbragg Date: Fri, 29 Aug 2014 11:35:17 -0500 Subject: [PATCH] fix gray triangle effect with urban shader on high --- src/Lib/terragear/tg_polygon_tesselate.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Lib/terragear/tg_polygon_tesselate.cxx b/src/Lib/terragear/tg_polygon_tesselate.cxx index 98002ac5..6d55d3e9 100644 --- a/src/Lib/terragear/tg_polygon_tesselate.cxx +++ b/src/Lib/terragear/tg_polygon_tesselate.cxx @@ -144,7 +144,7 @@ void tgPolygon::Tesselate( const std::vector& extra ) SGGeod p2 = SGGeod::fromDeg( to_double(tri.vertex(2).x()), to_double(tri.vertex(2).y()) ); /* Check for Zero Area before inserting */ - if ( !SGGeod_isEqual2D( p0, p1 ) && !SGGeod_isEqual2D( p1, p2 ) && !SGGeod_isEqual2D( p1, p2 ) ) { + if ( !SGGeod_isEqual2D( p0, p1 ) && !SGGeod_isEqual2D( p1, p2 ) && !SGGeod_isEqual2D( p0, p2 ) ) { AddTriangle( p0, p1, p2 ); }