summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthieu Herrb <[email protected]>2008-09-14 20:58:29 +0200
committerBrian <[email protected]>2009-01-11 16:44:50 -0700
commit356428d4e4dba433b405f63ff918d76eaf4b4215 (patch)
tree39b9a7c6ef40157d56875c6a3ddf361a1ff21af9
parentb4866f8a5229d4769a49b4c54a1675a61497d206 (diff)
replace nearbyint() by rint() for now.
-rw-r--r--src/mesa/drivers/dri/i965/brw_sf_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_sf_state.c b/src/mesa/drivers/dri/i965/brw_sf_state.c
index 506126fcfb0..741a7c53c47 100644
--- a/src/mesa/drivers/dri/i965/brw_sf_state.c
+++ b/src/mesa/drivers/dri/i965/brw_sf_state.c
@@ -229,7 +229,7 @@ sf_unit_create_from_key(struct brw_context *brw, struct brw_sf_unit_key *key,
/* XXX clamp max depends on AA vs. non-AA */
sf.sf7.sprite_point = key->point_sprite;
- sf.sf7.point_size = CLAMP(nearbyint(key->point_size), 1, 255) * (1<<3);
+ sf.sf7.point_size = CLAMP(rint(key->point_size), 1, 255) * (1<<3);
sf.sf7.use_point_size_state = !key->point_attenuated;
sf.sf7.aa_line_distance_mode = 0;