diff options
author | Matthieu Herrb <matthieu.herrb@laas.fr> | 2008-09-14 20:58:29 +0200 |
---|---|---|
committer | Brian <brianp@vmware.com> | 2009-01-11 16:49:32 -0700 |
commit | 6392569585e99211df5024357334f5547c77bcd9 (patch) | |
tree | 2cb8e1e073e350bead0db379fe6aba9fe7209649 | |
parent | 4015b48b210e169015bbbd3eec33b9366a796e34 (diff) |
replace nearbyint() by rint() for now.
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_sf_state.c | 2 |
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 24388b79a5..2440f542ad 100644 --- a/src/mesa/drivers/dri/i965/brw_sf_state.c +++ b/src/mesa/drivers/dri/i965/brw_sf_state.c @@ -230,7 +230,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; |