summaryrefslogtreecommitdiff
path: root/indra/llrender
diff options
context:
space:
mode:
authorRye <rye@alchemyviewer.org>2025-10-24 01:38:56 -0400
committerRye <rye@alchemyviewer.org>2025-10-27 04:59:14 -0400
commit1727c4d26429dd256fb2cd90fa83085e976794cc (patch)
tree532a24aa7e9bf659404f79c9d372c409b54a094e /indra/llrender
parentf7da57ddda41a4671949566ba4d13fe12fa68922 (diff)
Reintroduce llappearanceutility to viewer tree from archive/develop
Signed-off-by: Rye <rye@alchemyviewer.org>
Diffstat (limited to 'indra/llrender')
-rw-r--r--indra/llrender/llglheaders.h2
-rw-r--r--indra/llrender/llimagegl.cpp6
2 files changed, 5 insertions, 3 deletions
diff --git a/indra/llrender/llglheaders.h b/indra/llrender/llglheaders.h
index ad31921c05..4c0fa6df1c 100644
--- a/indra/llrender/llglheaders.h
+++ b/indra/llrender/llglheaders.h
@@ -34,7 +34,6 @@
#define GL_GLEXT_PROTOTYPES 1
#include "GL/gl.h"
#include "GL/glext.h"
-#include "GL/glu.h"
// The __APPLE__ kludge is to make glh_extensions.h not symbol-clash horribly
# define __APPLE__
@@ -56,7 +55,6 @@
# include "GL/glx.h"
# include "GL/glxext.h"
-
#elif LL_WINDOWS
//----------------------------------------------------------------------------
// LL_WINDOWS
diff --git a/indra/llrender/llimagegl.cpp b/indra/llrender/llimagegl.cpp
index 97ea6f67bd..e319816377 100644
--- a/indra/llrender/llimagegl.cpp
+++ b/indra/llrender/llimagegl.cpp
@@ -1053,7 +1053,11 @@ U32 type_width_from_pixtype(U32 pixtype)
bool should_stagger_image_set(bool compressed)
{
-#if LL_DARWIN
+#if LL_MESA_HEADLESS
+ return false;
+#elif LL_LINUX
+ return !compressed && on_main_thread() && gGLManager.mIsNVIDIA;
+#elif LL_DARWIN
return !compressed && on_main_thread() && gGLManager.mIsAMD;
#else
// glTexSubImage2D doesn't work with compressed textures on select tested Nvidia GPUs on Windows 10 -Cosmic,2023-03-08