animation: When fading, round the surface alpha when close to 0 or 1
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Thu, 21 Feb 2013 16:35:18 +0000 (18:35 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 22 Feb 2013 02:12:44 +0000 (21:12 -0500)
commit8a91324c13107d7958b1b2432cef3e5c21cc0294
treec79d85523fc7b587867e69594c9c68d63e21b1d9
parentee4160544662c298102f2f7183ba5d3520da63ad
animation: When fading, round the surface alpha when close to 0 or 1

The spring code stops when the current value is withing 0.0002 of the
target. In that case, round the value to 0.0 or 1.0 to enable the use
of fast paths, such as disabling blending in the GL renderer when an
opaque region is set.
src/animation.c