From d0e050dde3643aec5897be411616595b6c2f5625 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Tue, 8 Feb 2011 23:05:45 +0000 Subject: [PATCH] - M$ torments me day and night with their foolishness --- source/shared_lib/sources/platform/sdl/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/shared_lib/sources/platform/sdl/window.cpp b/source/shared_lib/sources/platform/sdl/window.cpp index bb3ff68b..b3fa7a4a 100644 --- a/source/shared_lib/sources/platform/sdl/window.cpp +++ b/source/shared_lib/sources/platform/sdl/window.cpp @@ -385,7 +385,7 @@ void Window::setupGraphicsScreen(int depthBits, int stencilBits, bool hardware_a // setup LOD bias factor //const float lodBias = std::max(std::min( configHandler->Get("TextureLODBias", 0.0f) , 4.0f), -4.0f); - const float lodBias = std::max(std::min( 0.0f , 4.0f), -4.0f); + const float lodBias = max(min(0.0f,4.0f),-4.0f); if (fabs(lodBias)>0.01f) { glTexEnvf(GL_TEXTURE_FILTER_CONTROL,GL_TEXTURE_LOD_BIAS, lodBias ); }