-/* $Id: s_triangle.c,v 1.6 2000/11/21 23:09:18 brianp Exp $ */
+/* $Id: s_triangle.c,v 1.7 2000/12/12 00:31:45 brianp Exp $ */
/*
* Mesa 3-D graphics library
* This function written by Klaus Niederkrueger <klaus@math.leidenuniv.nl>
* Send all questions and bug reports to him.
*/
+#if 0 /* XXX disabled because of texcoord interpolation errors */
static void near_persp_textured_triangle(GLcontext *ctx,
const SWvertex *v0,
const SWvertex *v1,
#undef DRAW_LINE
#undef BIAS
}
-
+#endif
/*
* This function written by Klaus Niederkrueger <klaus@math.leidenuniv.nl>
* Send all questions and bug reports to him.
*/
+#if 0 /* XXX disabled because of texcoord interpolation errors */
static void lin_persp_textured_triangle( GLcontext *ctx,
const SWvertex *v0,
const SWvertex *v1,
} \
}
-
#include "s_tritemp.h"
#undef SPAN
}
-
+#endif
/*
}
}
else {
+#if 00 /* XXX these function have problems with texture coord interpolation */
if (filter==GL_NEAREST) {
swrast->Triangle = near_persp_textured_triangle;
dputs("near_persp_textured_triangle");
swrast->Triangle = lin_persp_textured_triangle;
dputs("lin_persp_textured_triangle");
}
+#endif
+ swrast->Triangle = general_textured_triangle;
}
}
else {