Fix T63452: View Port/render artifacts while camera movement in

Patch provided by @matc
This commit is contained in:
2019-04-12 09:09:37 +02:00
parent d1cda823e0
commit 0ee23d0f5f

View File

@@ -84,6 +84,9 @@ void main(void)
if (sp2.x < -area.x || sp2.x > area.x) return;
if (sp2.y < -area.y || sp2.y > area.y) return;
/* culling behind camera */
if (P1.w < 0 || P2.w < 0) return;
/* determine the direction of each of the 3 segments (previous, current, next) */
vec2 v0 = normalize(sp1 - sp0);
vec2 v1 = normalize(sp2 - sp1);