mirror of
https://github.com/glest/glest-source.git
synced 2025-08-14 20:34:01 +02:00
- fixed mod center image previews in cases where userdata folder was non default
- removed commented out old code
This commit is contained in:
@@ -481,11 +481,7 @@ void Window::setupGraphicsScreen(int depthBits, int stencilBits, bool hardware_a
|
||||
//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(SystemFlags::VERBOSE_MODE_ENABLED) printf ("\n\n\n\n\n$$$$ In [%s::%s Line: %d] lodBias = %f\n\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,lodBias);
|
||||
#ifdef USE_STREFLOP
|
||||
if (streflop::fabs(static_cast<streflop::Simple>(lodBias)) > 0.01f) {
|
||||
#else
|
||||
if (fabs(lodBias) > 0.01f) {
|
||||
#endif
|
||||
if (std::fabs(lodBias) > 0.01f) {
|
||||
glTexEnvf(GL_TEXTURE_FILTER_CONTROL,GL_TEXTURE_LOD_BIAS, lodBias );
|
||||
}
|
||||
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s %d]\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__);
|
||||
|
Reference in New Issue
Block a user