aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_aatritemp.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2003-02-21 21:00:20 +0000
committerBrian Paul <[email protected]>2003-02-21 21:00:20 +0000
commit3a4231e132bf56d15679c9608b6d5a100d06d9dd (patch)
treed2a7ad447cec6461dc5bc85605e73be57d1db4a7 /src/mesa/swrast/s_aatritemp.h
parentea20dfa7a8788870959f136bff0c3a20e4c2bb31 (diff)
use IROUND to convert depth values from float to int (bug 690728)
Diffstat (limited to 'src/mesa/swrast/s_aatritemp.h')
-rw-r--r--src/mesa/swrast/s_aatritemp.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/swrast/s_aatritemp.h b/src/mesa/swrast/s_aatritemp.h
index b5d82a615c1..1b4df753719 100644
--- a/src/mesa/swrast/s_aatritemp.h
+++ b/src/mesa/swrast/s_aatritemp.h
@@ -1,4 +1,4 @@
-/* $Id: s_aatritemp.h,v 1.34 2003/01/28 00:14:32 brianp Exp $ */
+/* $Id: s_aatritemp.h,v 1.35 2003/02/21 21:00:20 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -292,7 +292,7 @@
array->coverage[count] = coverage;
#endif
#ifdef DO_Z
- array->z[count] = (GLdepth) solve_plane(cx, cy, zPlane);
+ array->z[count] = (GLdepth) IROUND(solve_plane(cx, cy, zPlane));
#endif
#ifdef DO_FOG
array->fog[count] = solve_plane(cx, cy, fogPlane);
@@ -398,7 +398,7 @@
array->coverage[ix] = coverage;
#endif
#ifdef DO_Z
- array->z[ix] = (GLdepth) solve_plane(cx, cy, zPlane);
+ array->z[ix] = (GLdepth) IROUND(solve_plane(cx, cy, zPlane));
#endif
#ifdef DO_FOG
array->fog[ix] = solve_plane(cx, cy, fogPlane);