From 3e77f4be0ac8fa543fe97d5c28813f3fd08bf881 Mon Sep 17 00:00:00 2001 From: hiker Date: Mon, 23 Jun 2014 16:17:38 +1000 Subject: [PATCH] Fix windows compiler warnings. --- src/graphics/render.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/graphics/render.cpp b/src/graphics/render.cpp index 65cd195a9..53ad6a8e5 100644 --- a/src/graphics/render.cpp +++ b/src/graphics/render.cpp @@ -48,6 +48,7 @@ #include "utils/profiler.hpp" #include +#include #define MAX2(a, b) ((a) > (b) ? (a) : (b)) #define MIN2(a, b) ((a) > (b) ? (b) : (a)) @@ -769,9 +770,12 @@ void IrrDriver::computeCameraMatrix(scene::ICameraSceneNode * const camnode, siz core::aabbox3df box = smallcambox; box = box.intersect(trackbox); - float xmin = INFINITY, xmax = -INFINITY; - float ymin = INFINITY, ymax = -INFINITY; - float zmin = INFINITY, zmax = -INFINITY; + float xmin = std::numeric_limits::infinity(); + float xmax = -std::numeric_limits::infinity(); + float ymin = std::numeric_limits::infinity(); + float ymax = -std::numeric_limits::infinity(); + float zmin = std::numeric_limits::infinity(); + float zmax = -std::numeric_limits::infinity(); const vector3df vectors[] = { frustrum->getFarLeftDown(),