On Sat, Oct 30, 2004 at 04:16:09AM +0200, Stephane Marchesin wrote: > ../../../../../src/mesa/tnl_dd/t_dd_vbtmp.h: In function `emit_wg': > ../../../../../src/mesa/tnl_dd/t_dd_vbtmp.h:387: error: `col_size' > undeclared (first use in this function)
It compiles for me after applying attached patch. I have no idea is this correct solution :) -- Free Software - find interesting programs and change them NetHack - meet interesting creatures, kill them and eat their bodies Usenet - meet interesting people from all over the world and flame them Decopter - unrealistic helicopter simulator, get it from http://decopter.sf.net
diff -Naur Mesa/src/mesa/tnl_dd/t_dd_vbtmp.h Mesa-fixed/src/mesa/tnl_dd/t_dd_vbtmp.h --- Mesa/src/mesa/tnl_dd/t_dd_vbtmp.h 2004-10-31 12:58:57.000000000 +0100 +++ Mesa-fixed/src/mesa/tnl_dd/t_dd_vbtmp.h 2004-10-31 13:28:36.350827680 +0100 @@ -344,7 +344,7 @@ LOCALVARS struct vertex_buffer *VB = &TNL_CONTEXT(ctx)->vb; GLfloat (*col)[4]; - GLuint col_stride; + GLuint col_stride,col_size; GLfloat (*coord)[4] = VB->NdcPtr->data; GLuint coord_stride = VB->NdcPtr->stride; GLfloat *v = (GLfloat *)dest; @@ -384,6 +384,7 @@ UNCLAMPED_FLOAT_TO_UBYTE(c->red, col[0][0]); UNCLAMPED_FLOAT_TO_UBYTE(c->green, col[0][1]); UNCLAMPED_FLOAT_TO_UBYTE(c->blue, col[0][2]); + col_size = VB->ColorPtr[0]->size; if (col_size == 4) { UNCLAMPED_FLOAT_TO_UBYTE(c->alpha, col[0][3]); } else {