- a few changes and now seems to compile in VC++ 2010 (still need to checkin project files)

This commit is contained in:
Mark Vejvoda
2011-02-15 23:53:48 +00:00
parent 8ec58868dc
commit a0cfe3fa08
10 changed files with 66 additions and 7 deletions

View File

@@ -386,7 +386,11 @@ 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 = max(min(0.0f,4.0f),-4.0f);
if (fabs(lodBias)>0.01f) {
#ifdef USE_STREFLOP
if (streflop::fabs(lodBias) > 0.01f) {
#else
if (fabs(lodBias) > 0.01f) {
#endif
glTexEnvf(GL_TEXTURE_FILTER_CONTROL,GL_TEXTURE_LOD_BIAS, lodBias );
}
}