Index: ps/trunk/binaries/data/config/default.cfg =================================================================== --- ps/trunk/binaries/data/config/default.cfg +++ ps/trunk/binaries/data/config/default.cfg @@ -85,6 +85,7 @@ shadowsfixed = false ; When enabled shadows are rendered only on the shadowsfixeddistance = 300.0 ; fixed distance and without swimming effect. +texturequality = 5 ; Texture resolution and quality (0 - Lowest, 1 Very Low, 2 - Low, 3 - Medium, 4 - High, 5 - Very High, 6 - Ultra) vsync = false particles = true fog = true Index: ps/trunk/source/ps/GameSetup/GameSetup.cpp =================================================================== --- ps/trunk/source/ps/GameSetup/GameSetup.cpp +++ ps/trunk/source/ps/GameSetup/GameSetup.cpp @@ -946,8 +946,14 @@ RunHardwareDetection(); - const int quality = SANE_TEX_QUALITY_DEFAULT; // TODO: set value from config file - SetTextureQuality(quality); + if (g_AtlasGameLoop && g_AtlasGameLoop->view) + SetTextureQuality(SANE_TEX_QUALITY_DEFAULT); + else + { + int textureQuality = SANE_TEX_QUALITY_DEFAULT; + CFG_GET_VAL("texturequality", textureQuality); + SetTextureQuality(textureQuality); + } ogl_WarnIfError();