diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewercontrol.cpp | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/linden/indra/newview/llviewercontrol.cpp b/linden/indra/newview/llviewercontrol.cpp index 203f9c7..146d738 100644 --- a/linden/indra/newview/llviewercontrol.cpp +++ b/linden/indra/newview/llviewercontrol.cpp | |||
@@ -69,7 +69,7 @@ | |||
69 | #include "llappviewer.h" | 69 | #include "llappviewer.h" |
70 | #include "llvosurfacepatch.h" | 70 | #include "llvosurfacepatch.h" |
71 | #include "llvowlsky.h" | 71 | #include "llvowlsky.h" |
72 | #include "llglimmediate.h" | 72 | #include "llrender.h" |
73 | 73 | ||
74 | #ifdef TOGGLE_HACKED_GODLIKE_VIEWER | 74 | #ifdef TOGGLE_HACKED_GODLIKE_VIEWER |
75 | BOOL gHackGodmode = FALSE; | 75 | BOOL gHackGodmode = FALSE; |
@@ -86,6 +86,7 @@ LLString gLastRunVersion; | |||
86 | LLString gCurrentVersion; | 86 | LLString gCurrentVersion; |
87 | 87 | ||
88 | extern BOOL gResizeScreenTexture; | 88 | extern BOOL gResizeScreenTexture; |
89 | extern BOOL gDebugGL; | ||
89 | 90 | ||
90 | //////////////////////////////////////////////////////////////////////////// | 91 | //////////////////////////////////////////////////////////////////////////// |
91 | // Listeners | 92 | // Listeners |
@@ -357,9 +358,15 @@ static bool handleRenderUseImpostorsChanged(const LLSD& newvalue) | |||
357 | return true; | 358 | return true; |
358 | } | 359 | } |
359 | 360 | ||
360 | static bool handleRenderUseCleverUIChanged(const LLSD& newvalue) | 361 | static bool handleRenderDebugGLChanged(const LLSD& newvalue) |
361 | { | 362 | { |
362 | gGL.setClever(newvalue.asBoolean()); | 363 | gDebugGL = newvalue.asBoolean(); |
364 | return true; | ||
365 | } | ||
366 | |||
367 | static bool handleRenderDebugPipelineChanged(const LLSD& newvalue) | ||
368 | { | ||
369 | gDebugPipeline = newvalue.asBoolean(); | ||
363 | return true; | 370 | return true; |
364 | } | 371 | } |
365 | 372 | ||
@@ -426,6 +433,7 @@ bool handleVoiceClientPrefsChanged(const LLSD& newvalue) | |||
426 | gVoiceClient->setCaptureDevice(inputDevice); | 433 | gVoiceClient->setCaptureDevice(inputDevice); |
427 | std::string outputDevice = gSavedSettings.getString("VoiceOutputAudioDevice"); | 434 | std::string outputDevice = gSavedSettings.getString("VoiceOutputAudioDevice"); |
428 | gVoiceClient->setRenderDevice(outputDevice); | 435 | gVoiceClient->setRenderDevice(outputDevice); |
436 | gVoiceClient->setLipSyncEnabled(gSavedSettings.getBOOL("LipSyncEnabled")); | ||
429 | } | 437 | } |
430 | return true; | 438 | return true; |
431 | } | 439 | } |
@@ -463,7 +471,8 @@ void settings_setup_listeners() | |||
463 | gSavedSettings.getControl("RenderMaxVBOSize")->getSignal()->connect(boost::bind(&handleResetVertexBuffersChanged, _1)); | 471 | gSavedSettings.getControl("RenderMaxVBOSize")->getSignal()->connect(boost::bind(&handleResetVertexBuffersChanged, _1)); |
464 | gSavedSettings.getControl("RenderUseFBO")->getSignal()->connect(boost::bind(&handleRenderUseFBOChanged, _1)); | 472 | gSavedSettings.getControl("RenderUseFBO")->getSignal()->connect(boost::bind(&handleRenderUseFBOChanged, _1)); |
465 | gSavedSettings.getControl("RenderUseImpostors")->getSignal()->connect(boost::bind(&handleRenderUseImpostorsChanged, _1)); | 473 | gSavedSettings.getControl("RenderUseImpostors")->getSignal()->connect(boost::bind(&handleRenderUseImpostorsChanged, _1)); |
466 | gSavedSettings.getControl("RenderUseCleverUI")->getSignal()->connect(boost::bind(&handleRenderUseCleverUIChanged, _1)); | 474 | gSavedSettings.getControl("RenderDebugGL")->getSignal()->connect(boost::bind(&handleRenderDebugGLChanged, _1)); |
475 | gSavedSettings.getControl("RenderDebugPipeline")->getSignal()->connect(boost::bind(&handleRenderDebugPipelineChanged, _1)); | ||
467 | gSavedSettings.getControl("RenderResolutionDivisor")->getSignal()->connect(boost::bind(&handleRenderResolutionDivisorChanged, _1)); | 476 | gSavedSettings.getControl("RenderResolutionDivisor")->getSignal()->connect(boost::bind(&handleRenderResolutionDivisorChanged, _1)); |
468 | gSavedSettings.getControl("RenderDeferred")->getSignal()->connect(boost::bind(&handleSetShaderChanged, _1)); | 477 | gSavedSettings.getControl("RenderDeferred")->getSignal()->connect(boost::bind(&handleSetShaderChanged, _1)); |
469 | gSavedSettings.getControl("AvatarCompositeLimit")->getSignal()->connect(boost::bind(&handleCompositeLimitChanged, _1)); | 478 | gSavedSettings.getControl("AvatarCompositeLimit")->getSignal()->connect(boost::bind(&handleCompositeLimitChanged, _1)); |
@@ -555,5 +564,6 @@ void settings_setup_listeners() | |||
555 | gSavedSettings.getControl("VivoxDebugServerName")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1)); | 564 | gSavedSettings.getControl("VivoxDebugServerName")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1)); |
556 | gSavedSettings.getControl("VoiceInputAudioDevice")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1)); | 565 | gSavedSettings.getControl("VoiceInputAudioDevice")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1)); |
557 | gSavedSettings.getControl("VoiceOutputAudioDevice")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1)); | 566 | gSavedSettings.getControl("VoiceOutputAudioDevice")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1)); |
567 | gSavedSettings.getControl("LipSyncEnabled")->getSignal()->connect(boost::bind(&handleVoiceClientPrefsChanged, _1)); | ||
558 | } | 568 | } |
559 | 569 | ||