Mesa (master): swrast: simplify assertion to silence warning
Brian Paul
brianp at kemper.freedesktop.org
Wed Apr 6 02:19:00 UTC 2011
Module: Mesa
Branch: master
Commit: 14b574433c7faedaa18f1c946159cb03630c7d9f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=14b574433c7faedaa18f1c946159cb03630c7d9f
Author: Brian Paul <brianp at vmware.com>
Date: Tue Apr 5 17:52:47 2011 -0600
swrast: simplify assertion to silence warning
---
src/mesa/swrast/s_aatriangle.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/src/mesa/swrast/s_aatriangle.c b/src/mesa/swrast/s_aatriangle.c
index 2c02a01..2e8767a 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];
More information about the mesa-commit
mailing list