ref: 89828b91c3a6ea35c63c9b43fc064d0954c2ce5c
parent: e8a1850c8d24d423c8d095c895fbd5e53394eac3
author: David <gek@katherine>
date: Wed Feb 17 10:07:06 EST 2021
glPlotPixel now obeys blending
--- a/src/ztext.c
+++ b/src/ztext.c
@@ -35,7 +35,20 @@
GLint x = p[1].i;
PIXEL pix = p[2].ui;
// PIXEL* pbuf = c->zb->pbuf;
+
+ //c->zb->pbuf[x] = pix;
+#if TGL_FEATURE_BLEND == 1
+ ZBuffer* zb = c->zb;
+ PIXEL* targ = zb->pbuf + x;
+ TGL_BLEND_VARS
+ if(zb->enable_blend){
+ TGL_BLEND_FUNC(pix, (*targ));
+ }else{
+ *targ = pix;
+ }
+#else
c->zb->pbuf[x] = pix;
+#endif
}
void glPlotPixel(GLint x, GLint y, GLuint pix) {