From 364d801d3fac58135e895b6f6562e3dc8d3a2686 Mon Sep 17 00:00:00 2001 From: Jan Date: Sun, 7 Aug 2022 19:23:30 +0200 Subject: [PATCH] fix compilation on gcc --- .../Game/IW4/AssetLoaders/AssetLoaderMaterial.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ObjLoading/Game/IW4/AssetLoaders/AssetLoaderMaterial.cpp b/src/ObjLoading/Game/IW4/AssetLoaders/AssetLoaderMaterial.cpp index b16d6c1f..803cd319 100644 --- a/src/ObjLoading/Game/IW4/AssetLoaders/AssetLoaderMaterial.cpp +++ b/src/ObjLoading/Game/IW4/AssetLoaders/AssetLoaderMaterial.cpp @@ -429,7 +429,7 @@ namespace IW4 std::string eyeOffsetSuffix; const auto eyeOffsetDepth = ReadFloatProperty("eyeOffsetDepth"); - if (fpclassify(eyeOffsetDepth) != FP_ZERO) + if (std::fpclassify(eyeOffsetDepth) != FP_ZERO) eyeOffsetSuffix = "_eyeoffset"; const auto materialType = ReadStringProperty("materialType"); @@ -496,12 +496,12 @@ namespace IW4 if (zFeather) { const auto zFeatherDepth = ReadFloatProperty("zFeatherDepth"); - if (fpclassify(zFeatherDepth) == FP_ZERO) + if (std::fpclassify(zFeatherDepth) == FP_ZERO) throw GdtReadingException("zFeatherDepth may not be zero"); AddConstant("featherParms", Vector4f(1.0f / zFeatherDepth, zFeatherDepth, 0, 0)); } - if (fpclassify(eyeOffsetDepth) != FP_ZERO) + if (std::fpclassify(eyeOffsetDepth) != FP_ZERO) AddConstant("eyeOffsetParms", Vector4f(eyeOffsetDepth, 0, 0, 0)); const auto colorTint = ReadVec4Property("colorTint", {1.0f, 1.0f, 1.0f, 1.0f});