From: Brian Paul Date: Tue, 5 Apr 2011 23:52:47 +0000 (-0600) Subject: swrast: simplify assertion to silence warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=14b574433c7faedaa18f1c946159cb03630c7d9f;p=mesa.git swrast: simplify assertion to silence warning --- diff --git a/src/mesa/swrast/s_aatriangle.c b/src/mesa/swrast/s_aatriangle.c index 2c02a01327f..2e8767a33d9 100644 --- a/src/mesa/swrast/s_aatriangle.c +++ b/src/mesa/swrast/s_aatriangle.c @@ -215,12 +215,7 @@ compute_coveragef(const GLfloat v0[3], const GLfloat v1[3], GLint stop = 4, i; GLfloat insideCount = 16.0F; -#ifdef DEBUG - { - const GLfloat area = dx0 * dy1 - dx1 * dy0; - ASSERT(area >= 0.0); - } -#endif + ASSERT(dx0 * dy1 - dx1 * dy0 >= 0.0); /* area >= 0.0 */ for (i = 0; i < stop; i++) { const GLfloat sx = x + samples[i][0];