Fixed compilation with GCC/Clang

src/swrenderer/line/r_walldraw.cpp:102:13: error: expected unqualified-id before ‘(’ token
This commit is contained in:
alexey.lysiuk 2017-03-26 22:09:34 +03:00
parent 84e94f2a32
commit e5d4d9a36a

View file

@ -99,7 +99,7 @@ namespace swrenderer
v = v - floor(v); v = v - floor(v);
double v_step = uv_stepd / texture->GetHeight(); double v_step = uv_stepd / texture->GetHeight();
if (std::isnan(v) || std::isnan(v_step)) // this should never happen, but it apparently does.. if (isnan(v) || isnan(v_step)) // this should never happen, but it apparently does..
{ {
uv_stepd = 0.0; uv_stepd = 0.0;
v = 0.0; v = 0.0;