diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index b9cb613b969875642c7a66977c7a4fddd2909d1f..68e39899f0b5e4ce2c2653e3220759ca8443c79a 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -9287,7 +9287,7 @@ <key>RenderShadowResolutionScale</key> <map> <key>Comment</key> - <string>Scale of shadow map resolution vs. screen resolution</string> + <string>Scale of shadow map resolution vs. screen resolution (only positivie values are allowed)</string> <key>Persist</key> <integer>1</integer> <key>Type</key> diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 65438ef05d316873aa79dbef8d1d586db7b9569e..eb2d3bf8737714a4e9a16764cbb8c667a7425e3f 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -973,7 +973,7 @@ bool LLPipeline::allocateScreenBuffer(U32 resX, U32 resY, U32 samples) mDeferredLight.release(); } - F32 scale = RenderShadowResolutionScale; + F32 scale = llmax(0.f, RenderShadowResolutionScale); if (shadow_detail > 0) { //allocate 4 sun shadow maps