From 61d43d205c70481a66f596e7263411bb20bdb0b9 Mon Sep 17 00:00:00 2001 From: Dave Parks Date: Tue, 10 Aug 2010 09:13:41 -0500 Subject: Fix for crash when deferred rendering enabled and toggling wireframe. --- indra/newview/llviewermenu.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'indra/newview') 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; } }; -- cgit v1.2.3