ref: 0f0109b4512032aa6576efb9771e60941904e357
parent: 0201aba8400101ae6372993fa2439f04ce9bc78a
author: David <gek@katherine>
date: Tue Mar 9 20:51:33 EST 2021
Automatic commit.
--- a/src/zraster.c
+++ b/src/zraster.c
@@ -129,6 +129,9 @@
rastoffset.v[1] = rastpos.v[1];
GLint zz = c->rasterpos_zz;
TGL_BLEND_VARS
+#if TGL_FEATURE_BLEND == 1
+ GLuint zbeb = zb->enable_blend;
+#endif
//Looping over the source pixels.
if(c->render_mode == GL_SELECT){
gl_add_select(c, zz, zz);
@@ -158,7 +161,7 @@
if(ZCMP(zz,*pz)){
#if TGL_FEATURE_BLEND == 1
- if(!zb->enable_blend)
+ if(!zbeb)
pbuf[tx+ty*tw] = col;
else
TGL_BLEND_FUNC(col, pbuf[tx+ty*tw])