- M$ torments me day and night with their foolishness

This commit is contained in:
Mark Vejvoda 2011-02-08 23:05:45 +00:00
parent e20162a3c4
commit d0e050dde3
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}