shithub: tinygl

Download patch

ref: 50e4f5c7c24d0aea519007f8274f05bcd89997ad
parent: 9269b2aeddb72669cabd1a84a267b105cec5823d
author: MHS <gek@katherine>
date: Tue Mar 23 10:46:06 EDT 2021

Automatic commit.

--- a/src/clip.c
+++ b/src/clip.c
@@ -26,9 +26,7 @@
 
 	/* texture */
 
-#if TGL_OPTIMIZATION_HINT_BRANCH_COST < 1
 	if (c->texture_2d_enabled) 
-#endif
 	{
 		v->zp.s = (GLint)(v->tex_coord.X * (ZB_POINT_S_MAX - ZB_POINT_S_MIN) + ZB_POINT_S_MIN); //MARKED
 		v->zp.t = (GLint)(v->tex_coord.Y * (ZB_POINT_T_MAX - ZB_POINT_T_MIN) + ZB_POINT_T_MIN); //MARKED
--- a/src/vertex.c
+++ b/src/vertex.c
@@ -142,9 +142,7 @@
 	v->zp.b = (GLint)(v->color.v[2] * COLOR_CORRECTED_MULT_MASK + COLOR_MIN_MULT) & COLOR_MASK;
 
 	
-#if TGL_OPTIMIZATION_HINT_BRANCH_COST < 1
 	if (c->texture_2d_enabled) 
-#endif
 	{
 		v->zp.s = (GLint)(v->tex_coord.X * (ZB_POINT_S_MAX - ZB_POINT_S_MIN) + ZB_POINT_S_MIN); //MARKED
 		v->zp.t = (GLint)(v->tex_coord.Y * (ZB_POINT_T_MAX - ZB_POINT_T_MIN) + ZB_POINT_T_MIN); //MARKED