From 4bb1d9df3a8f210e7241c397f3c5ed2a6eac015c Mon Sep 17 00:00:00 2001
From: Rye Mutt <rye@alchemyviewer.org>
Date: Tue, 4 Apr 2023 23:57:13 -0400
Subject: [PATCH] Fix RLVa overlay effect

---
 indra/newview/llviewerdisplay.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/indra/newview/llviewerdisplay.cpp b/indra/newview/llviewerdisplay.cpp
index aa7d128b129..bf46c04e0a4 100644
--- a/indra/newview/llviewerdisplay.cpp
+++ b/indra/newview/llviewerdisplay.cpp
@@ -1366,6 +1366,12 @@ void render_ui(F32 zoom_factor, int subfield)
         LL_PROFILE_ZONE_NAMED_CATEGORY_UI("HUD");
 		render_hud_elements();
         LLGLState::checkStates();
+// [RLVa:KB] - Checked: RLVa-2.2 (@setoverlay)
+		if (RlvActions::hasBehaviour(RLV_BHVR_SETOVERLAY))
+		{
+			LLVfxManager::instance().runEffect(EVisualEffect::RlvOverlay);
+		}
+// [/RLVa:KB]
 		render_hud_attachments();
 
         LLGLState::checkStates();
-- 
GitLab