shithub: tinygl

Download patch

ref: f03aac3fa4e87533f0606b6d28a594504d1b0d1f
parent: c58a9a045fd18630b95033f1414a09eaf3544558
author: David <gek@katherine>
date: Wed Feb 17 09:22:59 EST 2021

Bug fix- flat triangle rendering

--- a/src/clip.c
+++ b/src/clip.c
@@ -415,7 +415,7 @@
 				ZB_fillTriangleSmoothNOBLEND(c->zb, &p0->zp, &p1->zp, &p2->zp);
 		#endif
 	} else {
-		ZB_fillTriangleFlat(c->zb, &p0->zp, &p1->zp, &p2->zp);
+		//ZB_fillTriangleFlat(c->zb, &p0->zp, &p1->zp, &p2->zp);
 		#if TGL_FEATURE_BLEND == 1
 				if(c->zb->enable_blend) 
 					ZB_fillTriangleFlat(c->zb, &p0->zp, &p1->zp, &p2->zp);