summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2010-08-10 09:13:41 -0500
committerDave Parks <davep@lindenlab.com>2010-08-10 09:13:41 -0500
commit61d43d205c70481a66f596e7263411bb20bdb0b9 (patch)
tree8314f26f8bc529b4487fcf4fe42a19b9369d639a
parent531a732f43818a2ec8c18f8136c4748ab5f291f9 (diff)
Fix for crash when deferred rendering enabled and toggling wireframe.
-rw-r--r--indra/newview/llviewermenu.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp
index c4a66499e6..5922834ae8 100644
--- a/indra/newview/llviewermenu.cpp
+++ b/indra/newview/llviewermenu.cpp
@@ -1087,6 +1087,8 @@ class LLAdvancedToggleWireframe : public view_listener_t
bool handleEvent(const LLSD& userdata)
{
gUseWireframe = !(gUseWireframe);
+ LLPipeline::updateRenderDeferred();
+ gPipeline.resetVertexBuffers();
return true;
}
};