Cool VL Viewer forum
http://sldev.free.fr/forum/

Cull water does not show correct value in settings panel
http://sldev.free.fr/forum/viewtopic.php?f=4&t=2047
Page 1 of 1

Author:  ZaneZimer [ 2020-07-22 23:59:08 ]
Post subject:  Cull water does not show correct value in settings panel

Would something like the following diffs fix the issue:
Code:
--- linden_28_0_orig/indra/newview/llprefsgraphics.cpp   2020-07-14 02:40:25.000000000 -0700
+++ linden_28_0/indra/newview/llprefsgraphics.cpp   2020-07-22 17:05:46.133614891 -0700
@@ -522,6 +522,7 @@
    mCtrlOcclusion->setCommitCallback(onCommitOcclusion);
    mCtrlOcclusion->setCallbackUserData(this);
    mCtrlWaterOcclusion = getChild<LLComboBox>("water_occlusion");
+   mCtrlWaterOcclusion->setCurrentByIndex(gSavedSettings.getU32("RenderWaterCull"));
    childSetCommitCallback("texture_compression", onCommitCheckBox, this);
    childSetVisible("after_restart", LLStartUp::isLoggedIn());
 
@@ -891,7 +892,7 @@
    gSavedSettings.setBool("RenderVBOEnable", mUseVBO);
    gSavedSettings.setBool("RenderUseStreamVBO", mUseStreamVBO);
    gSavedSettings.setBool("RenderAnisotropic", mUseAniso);
-   gSavedSettings.setBool("RenderWaterCull", mRenderWaterCull);
+   gSavedSettings.setU32("RenderWaterCull", mRenderWaterCull);
    gSavedSettings.setU32("RenderFSAASamples", mFSAASamples);
    gSavedSettings.setF32("DisplayGamma", mGamma);
    gSavedSettings.setS32("TextureMemory", mVideoCardMem);
I have applied them to my build and it seems to show in the panel correctly.

Author:  Henri Beauchamp [ 2020-07-23 08:37:06 ]
Post subject:  Re: Cull water does not show correct value in settings panel

Thanks, but I already fixed this bug days ago (noticed it just after Saturday's release, i.e. a few hours too late). The fix will be in next release.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/