- When calculating the area, a difference of about 1px occurs.
so change roundf to floor
Change-Id: Id07ecd26456288884585ca58bc2d33e4f8bddb7e
static_cast<float>( viewportWidth ) * 0.5f - aabb.x,
static_cast<float>( viewportHeight ) * 0.5f - aabb.y );
- int x = static_cast< int >( roundf( aabbInScreen.x ) );
- int y = static_cast< int >( roundf( aabbInScreen.y ) );
+ int x = static_cast< int >( floor( aabbInScreen.x ) );
+ int y = static_cast< int >( floor( aabbInScreen.y ) );
int z = static_cast< int >( roundf( aabbInScreen.z ) );
int w = static_cast< int >( roundf( aabbInScreen.w ) );