projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2371ed3
)
fix MIN/MAX mix-up
author
Brian
<brian.paul@tungstengraphics.com>
Thu, 12 Jul 2007 16:43:33 +0000
(10:43 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Thu, 12 Jul 2007 16:43:33 +0000
(10:43 -0600)
src/mesa/pipe/draw/draw_clip.c
patch
|
blob
|
history
diff --git
a/src/mesa/pipe/draw/draw_clip.c
b/src/mesa/pipe/draw/draw_clip.c
index a1c4cf01f057670c76bb534f2a17e69616400755..619ad7d6d64356a0c7b0c63c2fbfea37edf8ac6a 100644
(file)
--- a/
src/mesa/pipe/draw/draw_clip.c
+++ b/
src/mesa/pipe/draw/draw_clip.c
@@
-25,9
+25,13
@@
*
**************************************************************************/
-/* Authors: Keith Whitwell <keith@tungstengraphics.com>
+/**
+ * \brief Clipping stage
+ *
+ * \author Keith Whitwell <keith@tungstengraphics.com>
*/
+
#include "main/macros.h"
#include "draw_private.h"
@@
-322,12
+326,12
@@
do_clip_line( struct prim_stage *stage,
if (dp1 < 0) {
GLfloat t = dp1 / (dp1 - dp0);
- t1 = M
IN
2(t1, t);
+ t1 = M
AX
2(t1, t);
}
if (dp0 < 0) {
GLfloat t = dp0 / (dp0 - dp1);
- t0 = M
IN
2(t0, t);
+ t0 = M
AX
2(t0, t);
}
if (t0 + t1 >= 1.0)