shithub: tinygl

Download patch

ref: dd59c41893e48081f81114a2c714d827218c0a32
parent: 997fe9a10272cd9c3a5f128213e64008ee663078
author: David <gek@katherine>
date: Tue Mar 9 22:05:51 EST 2021

Automatic commit.

--- a/src/zraster.c
+++ b/src/zraster.c
@@ -128,9 +128,13 @@
 	rastoffset.v[0] = rastpos.v[0];
 	rastoffset.v[1] = rastpos.v[1];
 	GLint zz = c->rasterpos_zz;
+#if TGL_FEATURE_BLEND_DRAW_PIXELS == 1
 	TGL_BLEND_VARS
+#endif
 #if TGL_FEATURE_BLEND == 1
+#if TGL_FEATURE_BLEND_DRAW_PIXELS == 1
 	GLuint zbeb = zb->enable_blend;
+#endif
 #endif
 	//Looping over the source pixels.
 	if(c->render_mode == GL_SELECT){
--- a/src/ztriangle.h
+++ b/src/ztriangle.h
@@ -25,7 +25,7 @@
 	PIXEL* pp1;
 	
 
-	GLint nb_lines, dx1, dy1, dx2, dy2;
+	GLint dx1, dy1, dx2, dy2;
 #if TGL_FEATURE_POLYGON_STIPPLE == 1
 	GLushort the_y;
 #endif
@@ -171,9 +171,9 @@
 	DRAW_INIT();
 //part used here and down.
 	for (GLint part = 0; part < 2; part++) {
-		
+		GLint nb_lines;
 		{ZBufferPoint *pr1, *pr2, *l1, *l2; //BEGINNING OF LIFETIME FOR ZBUFFERPOINT VARS!!!
-		GLint update_left, update_right; //update_left decl
+		register GLint update_left, update_right; //update_left decl
 			if (part == 0) {
 				if (fz > 0) { //Here! (VALUE_FZ_USED)
 					update_left = 1; //update_left first usage.