From f1ee481b82275cfadbce156514920750ebdd3065 Mon Sep 17 00:00:00 2001
From: Graham Linden <graham@lindenlab.com>
Date: Thu, 31 Jan 2019 14:48:35 -0800
Subject: [PATCH] SL-10443

Fix sun/moon disc geo generation reversing the UVs of the images for same.

Remove comment about voidwater when depth clamp is unavailable as it no longer applies.
---
 indra/newview/llviewerwindow.cpp | 5 -----
 indra/newview/llvosky.cpp        | 6 +++---
 2 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp
index 9be2e905a2a..09b681ce741 100644
--- a/indra/newview/llviewerwindow.cpp
+++ b/indra/newview/llviewerwindow.cpp
@@ -1836,11 +1836,6 @@ LLViewerWindow::LLViewerWindow(const Params& p)
 		LLFeatureManager::getInstance()->applyRecommendedSettings();
 		gSavedSettings.setBOOL("ProbeHardwareOnStartup", FALSE);
 	}
-
-	if (!gGLManager.mHasDepthClamp)
-	{
-		LL_INFOS("RenderInit") << "Missing feature GL_ARB_depth_clamp. Void water might disappear in rare cases." << LL_ENDL;
-	}
 	
 	// If we crashed while initializng GL stuff last time, disable certain features
 	if (gSavedSettings.getBOOL("RenderInitError"))
diff --git a/indra/newview/llvosky.cpp b/indra/newview/llvosky.cpp
index 7b5a922bbd5..678f1fe7488 100644
--- a/indra/newview/llvosky.cpp
+++ b/indra/newview/llvosky.cpp
@@ -1213,9 +1213,9 @@ bool LLVOSky::updateHeavenlyBodyGeometry(LLDrawable *drawable, F32 scale, const
 	LLFace *facep;
 
     LLQuaternion rot    = hb.getRotation();
-	LLVector3 to_dir    = LLVector3::x_axis * rot;
-    LLVector3 hb_right  = LLVector3::y_axis * rot;
-	LLVector3 hb_up     = LLVector3::z_axis * rot;
+	LLVector3 to_dir    = LLVector3::x_axis     * rot;
+    LLVector3 hb_right  = LLVector3::y_axis_neg * rot;
+	LLVector3 hb_up     = LLVector3::z_axis     * rot;
 
 	LLVector3 draw_pos = to_dir * HEAVENLY_BODY_DIST;
 
-- 
GitLab