Commit b9615235 by Sebastian Eichelbaum

[ADD] missed some stuff for android. Fixed now

parent 109537e3
......@@ -81,12 +81,12 @@ namespace wlimits
template< typename T > bool wlimits::isNaN( T value )
{
return boost::math::isnan( value );
return ( boost::math::isnan )( value );
}
template< typename T > bool wlimits::isInf( T value )
{
return boost::math::isinf( value );
return ( boost::math::isinf )( value );
}
#endif // WLIMITS_H
......@@ -176,7 +176,7 @@ const std::string& WThreadedRunner::getCrashMessage() const
void WThreadedRunner::setThisThreadName( std::string name )
{
#ifdef __linux__
#if ( defined( __linux__ ) && !defined( __ANDROID__ ) )
// set the name of the thread. This name is shown by the "top", for example.
prctl( PR_SET_NAME, ( "openwalnut (" + name + ")" ).c_str() );
#endif
......
......@@ -103,6 +103,8 @@ void WFiberDrawable::drawFibers( osg::RenderInfo& renderInfo ) const //NOLINT
void WFiberDrawable::drawTubes() const
{
// This does not work if GLES is used
#ifndef GL_ES_VERSION_2_0
for( size_t i = 0; i < m_active->size(); ++i )
{
if( (*m_active)[i] )
......@@ -123,5 +125,6 @@ void WFiberDrawable::drawTubes() const
glEnd();
}
}
#endif
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment