fix linux compile
This commit is contained in:
@@ -125,12 +125,12 @@ void StreamDisplay::DrawPrimitives()
|
|||||||
void StreamDisplay::SetPercent( float fPercent )
|
void StreamDisplay::SetPercent( float fPercent )
|
||||||
{
|
{
|
||||||
DEBUG_ASSERT( fPercent >= 0.0f && fPercent <= 1.0f );
|
DEBUG_ASSERT( fPercent >= 0.0f && fPercent <= 1.0f );
|
||||||
if( _isnan(fPercent) )
|
if( isnan(fPercent) )
|
||||||
{
|
{
|
||||||
DEBUG_ASSERT_M( 0, "fPercent is NaN" );
|
DEBUG_ASSERT_M( 0, "fPercent is NaN" );
|
||||||
fPercent = 1;
|
fPercent = 1;
|
||||||
}
|
}
|
||||||
if( !_finite(fPercent) )
|
if( !finite(fPercent) )
|
||||||
{
|
{
|
||||||
DEBUG_ASSERT_M( 0, "fPercent is infinite" );
|
DEBUG_ASSERT_M( 0, "fPercent is infinite" );
|
||||||
fPercent = 1;
|
fPercent = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user