--- cvsroot/libgender/material.C 2004/11/01 22:23:38 1.28 +++ cvsroot/libgender/material.C 2004/11/02 02:59:33 1.29 @@ -108,8 +108,7 @@ lightvec = xyz (lightpos - model_view_matrix * vin.vertex); camdist = 1 - max (length (lightvec) / 10000., 0); - p.vsh->end (); - p.vsh->compile (); + p.vsh->stop (); p.fsh->start (); @@ -125,8 +124,7 @@ fac = pow (max (fac, 0.0), 2); xyz (fout.frag_color) = texture_2d (texvar, texcoord) * (fac + 0.4) * camdist; - p.fsh->end (); - p.fsh->compile (); + p.fsh->stop (); p.link (); }