From 18638cd47ce17bce3fb9dcbb4759468ed772d202 Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Tue, 10 Jul 2012 00:55:26 +0200 Subject: [PATCH 1/5] Fix assertion on shutdown if haven't logged in --- indra/newview/llviewertexturelist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/llviewertexturelist.cpp b/indra/newview/llviewertexturelist.cpp index 4be8df0e9..90806a724 100644 --- a/indra/newview/llviewertexturelist.cpp +++ b/indra/newview/llviewertexturelist.cpp @@ -277,7 +277,7 @@ void LLViewerTextureList::shutdown() break; } - if (count > 0 && !gDirUtilp->getExpandedFilename(LL_PATH_PER_SL_ACCOUNT, "").empty()) + if (count > 0 && !gDirUtilp->getLindenUserDir(true).empty()) { std::string filename = gDirUtilp->getExpandedFilename(LL_PATH_PER_SL_ACCOUNT, get_texture_list_name()); llofstream file; From b19c284eb77fbbc829eaa6d308ad54c4846235e3 Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Tue, 10 Jul 2012 05:34:50 +0200 Subject: [PATCH 2/5] Make void water subdivision tunable --- indra/newview/app_settings/settings.xml | 13 +++++++++++++ indra/newview/llvowater.cpp | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 2eca82c95..a4d94dd95 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -21,6 +21,19 @@ 1 + SianaVoidWaterSubdivision + + Comment + Number of tiles of void water + Persist + 1 + Type + U32 + Value + 8 + + + SGAbsolutePointer Comment diff --git a/indra/newview/llvowater.cpp b/indra/newview/llvowater.cpp index 9ba977f22..05e033392 100644 --- a/indra/newview/llvowater.cpp +++ b/indra/newview/llvowater.cpp @@ -170,7 +170,8 @@ BOOL LLVOWater::updateGeometry(LLDrawable *drawable) static const unsigned int indices_per_quad = 6; static const LLCachedControl render_transparent_water("RenderTransparentWater",false); - const S32 size = (render_transparent_water && LLGLSLShader::sNoFixedFunction) ? 16 : 1; + static const LLCachedControl water_subdiv("SianaVoidWaterSubdivision", 16); + const S32 size = (render_transparent_water && LLGLSLShader::sNoFixedFunction) ? water_subdiv : 1; const S32 num_quads = size * size; face->setSize(vertices_per_quad * num_quads, indices_per_quad * num_quads); From 2f743fe2ce0a9ebf1f9c2ed96aa8d6abf6414580 Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Tue, 10 Jul 2012 05:36:07 +0200 Subject: [PATCH 3/5] About floater fixup, new contributors! --- indra/newview/llfloaterabout.cpp | 3 ++- .../skins/default/xui/en-us/floater_about.xml | 20 +++++++++---------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/indra/newview/llfloaterabout.cpp b/indra/newview/llfloaterabout.cpp index 8516035d3..e9a6a367e 100644 --- a/indra/newview/llfloaterabout.cpp +++ b/indra/newview/llfloaterabout.cpp @@ -208,13 +208,14 @@ LLFloaterAbout::LLFloaterAbout() support.append( gSysCPU.getCPUString() ); support.append("\n"); + /* This is confusing and WRONG. support.append("SSE Support:"); if(gSysCPU.hasSSE()) support.append(" SSE2\n"); else if(gSysCPU.hasSSE()) support.append(" SSE\n"); else - support.append(" None\n"); + support.append(" None\n"); */ U32 memory = gSysMemory.getPhysicalMemoryKB() / 1024; // Moved hack adjustment to Windows memory size into llsys.cpp diff --git a/indra/newview/skins/default/xui/en-us/floater_about.xml b/indra/newview/skins/default/xui/en-us/floater_about.xml index 2f32819c1..5b10b9afd 100644 --- a/indra/newview/skins/default/xui/en-us/floater_about.xml +++ b/indra/newview/skins/default/xui/en-us/floater_about.xml @@ -3,15 +3,15 @@ can_resize="false" height="440" min_height="100" min_width="100" name="floater_about" rect_control="FloaterAboutRect" title="About Singularity Viewer" width="470"> - - - + + +