1
0
Fork 0

fix gray triangle effect with urban shader on high

This commit is contained in:
wlbragg 2014-08-29 11:35:17 -05:00
parent 47db776404
commit 8aabdbf2ad

View file

@ -144,7 +144,7 @@ void tgPolygon::Tesselate( const std::vector<SGGeod>& 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 );
}