summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2012-03-22 17:48:24 -0500
committerDave Parks <davep@lindenlab.com>2012-03-22 17:48:24 -0500
commitae94c0fcad2eaf94196619aa7ff5cbfc4a936534 (patch)
treeec95fe08f3583dec234c02988650be3ceb75ae45
parent364d6a1f1c592921389f7e04a19082d351f57c80 (diff)
MAINT-810 Fix for crash in LLRenderTarget when exiting wireframe render mode after resizing window.
-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 7a873974eb..245095d614 100644
--- a/indra/newview/llviewermenu.cpp
+++ b/indra/newview/llviewermenu.cpp
@@ -88,6 +88,7 @@
#include "lltoolpie.h"
#include "lltoolselectland.h"
#include "lltrans.h"
+#include "llviewerdisplay.h" //for gWindowResized
#include "llviewergenericmessage.h"
#include "llviewerhelp.h"
#include "llviewermenufile.h" // init_menu_file()
@@ -1113,6 +1114,7 @@ class LLAdvancedToggleWireframe : public view_listener_t
bool handleEvent(const LLSD& userdata)
{
gUseWireframe = !(gUseWireframe);
+ gWindowResized = TRUE;
LLPipeline::updateRenderDeferred();
gPipeline.resetVertexBuffers();
return true;