summaryrefslogtreecommitdiff
path: root/indra/newview
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
commitb9ec8e094a89715fc46e1a8173c34f6f1ea8ee67 (patch)
treebbbfcf7f0f0a6f044f99b193625cec5ac45226b0 /indra/newview
parent17ccb6a46b680d47d267446919db94675e8182f5 (diff)
Fix for crash when deferred rendering enabled and toggling wireframe.
(transplanted from 3886dff9a2829c7a8957d2cc48742e0678ec06a6)
Diffstat (limited to 'indra/newview')
-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 a289a0eb7a..40bf62acc9 100644
--- a/indra/newview/llviewermenu.cpp
+++ b/indra/newview/llviewermenu.cpp
@@ -1083,6 +1083,8 @@ class LLAdvancedToggleWireframe : public view_listener_t
bool handleEvent(const LLSD& userdata)
{
gUseWireframe = !(gUseWireframe);
+ LLPipeline::updateRenderDeferred();
+ gPipeline.resetVertexBuffers();
return true;
}
};