shithub: tinygl

Download patch

ref: e670b8938472162fb4a2d884c2129dfe72fe404d
parent: 3bc4b591d0543aa27da6bcbdad94af3e253322a6
author: David <gek@katherine>
date: Wed Feb 24 16:25:33 EST 2021

Perf boost, ztext

--- a/src/ztext.c
+++ b/src/ztext.c
@@ -41,6 +41,7 @@
 void glopPlotPixel(GLContext* c, GLParam* p) {
 	GLint x = p[1].i;
 	PIXEL pix = p[2].ui;;
+/*
 #if TGL_FEATURE_BLEND == 1
 	ZBuffer* zb = c->zb;
 	PIXEL* targ = zb->pbuf + x;
@@ -50,9 +51,9 @@
 	}else{
 		*targ = pix;
 	}
-#else
+#else*/
 	c->zb->pbuf[x] = pix;
-#endif
+//#endif
 }
 
 void glPlotPixel(GLint x, GLint y, GLuint pix) {