summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_tritemp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/swrast/s_tritemp.h')
-rw-r--r--src/mesa/swrast/s_tritemp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_tritemp.h b/src/mesa/swrast/s_tritemp.h
index 1d71839713c..4dc42a80a72 100644
--- a/src/mesa/swrast/s_tritemp.h
+++ b/src/mesa/swrast/s_tritemp.h
@@ -90,6 +90,7 @@
* SUB_PIXEL_BITS.
*/
+#include "util/u_math.h"
#ifndef MAX_GLUINT
#define MAX_GLUINT 0xffffffffu
@@ -239,7 +240,7 @@ static void NAME(struct gl_context *ctx, const SWvertex *v0,
{
const GLfloat area = eMaj.dx * eBot.dy - eBot.dx * eMaj.dy;
- if (IS_INF_OR_NAN(area) || area == 0.0F)
+ if (util_is_inf_or_nan(area) || area == 0.0F)
return;
if (area * bf * swrast->_BackfaceCullSign < 0.0F)