projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
874a2c0
)
swrast: simplify assertion to silence warning
author
Brian Paul
<brianp@vmware.com>
Tue, 5 Apr 2011 23:52:47 +0000
(17:52 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 6 Apr 2011 02:18:46 +0000
(20:18 -0600)
src/mesa/swrast/s_aatriangle.c
patch
|
blob
|
history
diff --git
a/src/mesa/swrast/s_aatriangle.c
b/src/mesa/swrast/s_aatriangle.c
index 2c02a01327f246d460213a41498092f7eb86c27b..2e8767a33d9f039e04d3754667c5b0642e31b8e2 100644
(file)
--- 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];