X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Ftnl%2Ft_vertex_generic.c;h=7f871a4f68678c3e06f49215e1bde690a4bb6b4f;hb=39d0c68321dfb592afc1f6f63d90d5508cdf7333;hp=8926c178ddbaba054066c550a4ad5f4b7f456ff0;hpb=877128505431adaf817dc8069172ebe4a1cdf5d8;p=mesa.git diff --git a/src/mesa/tnl/t_vertex_generic.c b/src/mesa/tnl/t_vertex_generic.c index 8926c178ddb..7f871a4f686 100644 --- a/src/mesa/tnl/t_vertex_generic.c +++ b/src/mesa/tnl/t_vertex_generic.c @@ -28,15 +28,14 @@ #include "main/glheader.h" #include "main/context.h" -#include "main/colormac.h" -#include "main/simple_list.h" +#include "main/macros.h" #include "swrast/s_chan.h" #include "t_context.h" #include "t_vertex.h" #if 0 -#define DEBUG_INSERT printf("%s\n", __FUNCTION__) +#define DEBUG_INSERT printf("%s\n", __func__) #else #define DEBUG_INSERT #endif @@ -1026,7 +1025,7 @@ void _tnl_generic_interp( struct gl_context *ctx, if (tnl->NeedNdcCoords) { const GLfloat *dstclip = VB->ClipPtr->data[edst]; - if (dstclip[3] != 0.0) { + if (dstclip[3] != 0.0f) { const GLfloat w = 1.0f / dstclip[3]; GLfloat pos[4];